Replies: 1 comment 3 replies
-
Sure, we can add a note in the class documentation. Unfortunately, the concept of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was working on my project and I found that the methods are not bound to the instances. This means that in a snippet like
m
will be different between the callsobj.method()
andf()
, with a behavior similar to what happen withthis
in javascript.While, in retrospective, it was obvious looking at how the
.brs
is compiled, I would suggest to add some explicit note on the classes documentation (maybe it's me, but I didn't find any reference about it, and naively I expected to work with a more common scope resolution).BTW: is there a way to force the value of
m
? something like the js.bind()
functionBeta Was this translation helpful? Give feedback.
All reactions