mirror of https://github.com/japl-lang/japl.git
Changed equality for function objects (moved to pointer equality). TODO: Fix integer identity bug
This commit is contained in:
parent
807237b884
commit
c621ce09b3
|
@ -76,6 +76,4 @@ proc hash*(self: ptr Function): uint64 =
|
|||
|
||||
|
||||
proc eq*(self, other: ptr Function): bool =
|
||||
result = self.name.stringify() == other.name.stringify() # Since in JAPL functions cannot
|
||||
# be overridden, if two function names are equal they are also the same
|
||||
# function object (TODO: Verify this)
|
||||
result = self == other # Pointer equality
|
Loading…
Reference in New Issue