You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A warning should be given when the target of an assignment (the left hand side) in a NetRexx Program does have the same name as a visible property
of a module in the USES clause.
example:
class abc properties public a=3
b=4
...
class newclass USES abc
b=a+b
most interesting :
Left hand side b is a new local variable, whilst right hand side
Hence, when possible, a warning shall be issued , at least ....
I had some discussions on this behaviour with Mike Cowlishaw long time ago. I think this behaviour shall be
(a) documented in the Reference guide
(b) a warning (or better an error) shall be produced in this special case, telling that USED Properties might not be used
unqualified on the left hand side of an assignment.
Thomas Schneider
The text was updated successfully, but these errors were encountered:
A warning should be given when the target of an assignment (the left hand side) in a NetRexx Program does have the same name as a visible property
of a module in the USES clause.
example:
most interesting :
Left hand side b is a new local variable, whilst right hand side
Hence, when possible, a warning shall be issued , at least ....
I had some discussions on this behaviour with Mike Cowlishaw long time ago. I think this behaviour shall be
(a) documented in the Reference guide
(b) a warning (or better an error) shall be produced in this special case, telling that USED Properties might not be used
unqualified on the left hand side of an assignment.
Thomas Schneider
The text was updated successfully, but these errors were encountered: