Switching to JSValue throughout. Implementing operators per base type.
git-svn-id: svn://10.0.0.236/trunk@32415 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -7,9 +7,19 @@ class JSString extends JSValue {
|
||||
|
||||
void eval(Environment theEnv)
|
||||
{
|
||||
theEnv.theStack.push(new StackValue(s));
|
||||
theEnv.theStack.push(this);
|
||||
}
|
||||
|
||||
void add(Environment theEnv)
|
||||
{
|
||||
JSString vR = theEnv.theStack.pop().toJSString();
|
||||
theEnv.theStack.push(new JSString(s + vR.s));
|
||||
}
|
||||
|
||||
JSString toJSString()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
String s;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user