Tighten type checking rules on concatenation operator.

This commit is contained in:
James Roseborough
2009-01-28 18:40:07 +00:00
parent 67bdc8dbc9
commit 3235711447

View File

@@ -325,8 +325,7 @@ public class LValue {
/** Concatenate this value to a ByteArrayOutputStream */
public void luaConcatTo(ByteArrayOutputStream baos) {
byte[] b = toJavaString().getBytes();
baos.write(b,0,b.length);
throw new LuaErrorException( "attempt to concatenate "+luaGetTypeName() );
}
/** Return true if this is a lua string, meaning it is