Open DasBrain opened 7 years ago
I wrote the TCL impl - and indeed I mentioned this problem in the first pull request #106 ... You're welcome to try to solve it (implement GC / reference counting yourself) - it is a challenge.
I will try, but I will use a dicts as objects. They are immutable, so modification of them will be hard.
Also, I don't understand why you use apply at all.
The Tcl implementation uses TclOO objects to represent mal objects. Unlike other languages, Tcl does not have a garbage collector. Objects have to be destroyed by the programmer.