#153 closed defect (fixed)
Shadowing of user-defined variables doesn't give a warning
Reported by: | sschmidt | Owned by: | ALL |
---|---|---|---|
Priority: | P3 | Milestone: | |
Component: | interfaces | Version: | 2.0.0beta |
Severity: | normal | Keywords: | input file |
Cc: |
Description
If the user by chance defines a variable of the same name as an internal variable (e.g. Phi in the attached example) this variable is shadowed by the internal one without giving any warning.
Maybe there should be a warning?
Attachments (1)
Change History (4)
Changed 15 years ago by
comment:1 Changed 15 years ago by
Milestone: | v2.0final → v2.0-rc2 |
---|
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
In r1624 I introduced the 'intrinsic' category for variables. User variables are marked as such when echoed on screen. Overwriting observables gives an error (already when the script is compiled).
This should settle the issue.
Note: See
TracTickets for help on using
tickets.
very simple example of shadowing