Open hyyan opened 1 year ago
@hyyan
Note if I remove the method parameter then a warning is shown.
Thanks for reporting!
Yeah, currently we link to the parameter BBjWindow window!
.
Is accessing the fields without an #
valid, I don't recall it?
Would following work in BBj?
class public Test
field private BBjWindow window!
method public void run()
? window!
methodend
classend
I'm not sure yet if it better to solve in linker or add a validation.
Is accessing the fields without an
#
valid, I don't recall it?
No. it wont work
The special symbol # is required in front of a field name in order for a custom object method to get direct access to a field (bypassing the accessor methods)
Thank you for the link! I think the better way here is to add a validation.
Hence #window! references a field of the class, window! is a normal local variable in the method scope.
The following sample utilizes the
#window!
field, which is not defined in the class. However, no errors or warnings are displayed, but there should be an error notification.Note if I remove the method parameter then a warning is shown.