-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels