Skip to content

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

@rvjansen

Description

@rvjansen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions