Mercurial Hosting > luan
comparison core/src/luan/LuanTable.java @ 414:d2ab2240cc65
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 29 Apr 2015 19:06:18 -0600 |
parents | 094f37c5e6f9 |
children | 8fbb961aabd5 |
comparison
equal
deleted
inserted
replaced
413:8937263f59f6 | 414:d2ab2240cc65 |
---|---|
110 rtn.add(i); | 110 rtn.add(i); |
111 } | 111 } |
112 return rtn; | 112 return rtn; |
113 } | 113 } |
114 */ | 114 */ |
115 protected String type() { | |
116 return "table"; | |
117 } | |
118 | 115 |
119 public Object get(Object key) { | 116 public Object get(Object key) { |
120 if( list != null ) { | 117 if( list != null ) { |
121 Integer iT = Luan.asInteger(key); | 118 Integer iT = Luan.asInteger(key); |
122 if( iT != null ) { | 119 if( iT != null ) { |
383 s = "<couldn't repr: " + Luan.stringEncode(Luan.toString(obj)) + ">"; | 380 s = "<couldn't repr: " + Luan.stringEncode(Luan.toString(obj)) + ">"; |
384 return s; | 381 return s; |
385 } | 382 } |
386 } | 383 } |
387 | 384 |
385 @Override public final String toString() { | |
386 return "table:" + Integer.toHexString(hashCode()); | |
387 } | |
388 | |
388 } | 389 } |