JoeStrout / miniscript

source code of both C# and C++ implementations of the MiniScript scripting language
MIT License
280 stars 64 forks source link

Bugs with `funcRef` #136

Closed Withered-Flower-0422 closed 8 months ago

Withered-Flower-0422 commented 8 months ago

MM:

]funcRef.f = function; print "hi"; end function
](@print).f
hi

CL:

> funcRef.f = function; print "hi"; end function 
> (@print).f
Runtime Error: Key Not Found: 'f' not found in map [line 1]

See on Discord.

And:

]funcRef.f = 42
]a = function; end function
](@a).f
42
](@globals.a).f
Runtime Error: Type Error (while attempting to look up f) [line 1]

See on Discord.

juh9870 commented 8 months ago

The third code block seems to be caused by #70

Withered-Flower-0422 commented 8 months ago

OK, the issue is already reported in #99.