Mercurial Hosting > luan
comparison core/src/luan/impl/LenExpr.java @ 575:7c3ad6db8ac3
make LuanState.JAVA private
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 13 Jul 2015 18:34:31 -0600 |
parents | f1601a4ce1aa |
children | 4723d22062ce |
comparison
equal
deleted
inserted
replaced
574:6cc2f047019b | 575:7c3ad6db8ac3 |
---|---|
26 } | 26 } |
27 LuanBit bit = luan.bit(el); | 27 LuanBit bit = luan.bit(el); |
28 if( !(o instanceof LuanTable) ) | 28 if( !(o instanceof LuanTable) ) |
29 throw bit.exception( "attempt to get length of a " + Luan.type(o) + " value" ); | 29 throw bit.exception( "attempt to get length of a " + Luan.type(o) + " value" ); |
30 LuanTable t = (LuanTable)o; | 30 LuanTable t = (LuanTable)o; |
31 return t.length(bit); | 31 return bit.length(t); |
32 } | 32 } |
33 } | 33 } |