Change LString to use an array of bytes instead of wrapping Java's String.

This brings our implementation more in line with regular C Lua.
This commit is contained in:
Ian Farmer
2007-09-10 06:27:54 +00:00
parent aa44eedf4b
commit aeafca11b6
17 changed files with 274 additions and 84 deletions

View File

@@ -8,15 +8,15 @@ public final class LBoolean extends LValue {
public static final LString TYPE_NAME = new LString("boolean");
private final String m_name;
private final LString m_name;
private final boolean m_value;
private LBoolean( String name, boolean value ) {
this.m_name = name;
this.m_name = new LString( name );
this.m_value = value;
}
public final String luaAsString() {
public final LString luaAsString() {
return m_name;
}