add JIO context that returns the current ISBPL instance, fix ISBPLObject.equals
This commit is contained in:
parent
9c6a4cc98a
commit
8cf1983910
2 changed files with 12 additions and 0 deletions
|
@ -920,6 +920,11 @@ public class ISBPL {
|
|||
}
|
||||
};
|
||||
break;
|
||||
case "jio.context":
|
||||
func = (stack) -> {
|
||||
stack.push(toISBPL(this));
|
||||
};
|
||||
break;
|
||||
case "null":
|
||||
func = (stack) -> {
|
||||
stack.push(new ISBPLObject(getType("null"), 0));
|
||||
|
@ -1450,6 +1455,8 @@ class ISBPLObject {
|
|||
if(this == o) return true;
|
||||
if(!(o instanceof ISBPLObject)) return false;
|
||||
ISBPLObject object = (ISBPLObject) o;
|
||||
if(!this.type.equals(object.type))
|
||||
return false;
|
||||
if(this.object == object.object)
|
||||
return true;
|
||||
if(this.object == null)
|
||||
|
|
|
@ -101,6 +101,11 @@ def TYPE_JIO "jio" mktype =TYPE_JIO
|
|||
native jio.getclass
|
||||
jio.getclass
|
||||
} TYPE_JIO defmethod
|
||||
"context" {
|
||||
pop
|
||||
native jio.context
|
||||
jio.context
|
||||
} TYPE_JIO defmethod
|
||||
def JIO 0 TYPE_JIO settype =JIO
|
||||
|
||||
func _string {
|
||||
|
|
Loading…
Add table
Reference in a new issue