Closed Almas-Ali closed 2 months ago
Tested this and it works if you do (string_obj.count)(v)
. I think we need to update our parser to parse it the same way
Tested this and it works if you do
(string_obj.count)(v)
. I think we need to update our parser to parse it the same way
Very weird syntax! We need fix this soon.
I think it is because it runs the whole count(v)
in the context of the string, instead of just fetching count
and calling it from outside (And the string has no v
). This bit me several times in the development of #98, so we definitely need to fix it soon.
Tested this and it works if you do
(string_obj.count)(v)
. I think we need to update our parser to parse it the same way
Nevermind, it actually crashes in Python
Describe the bug When accessing a variable in a class (
BuiltInInstance
) it is givingundefined
. I think it is related to scoping issue, which is introduced by #98.Screenshots or Code snippets