Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USED variables in conjunction with ASSIGNMENTS (was NETREXX-146) #23

Open
rvjansen opened this issue Jan 26, 2022 · 0 comments
Open

USED variables in conjunction with ASSIGNMENTS (was NETREXX-146) #23

rvjansen opened this issue Jan 26, 2022 · 0 comments

Comments

@rvjansen
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant