Changed equality for function objects (moved to pointer equality). TODO: Fix integer identity bug

This commit is contained in:
nocturn9x 2021-01-29 15:34:05 +01:00
parent 807237b884
commit c621ce09b3
1 changed files with 1 additions and 3 deletions

View File

@ -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