whizard is hosted by Hepforge, IPPP Durham

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#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)

bug3.sin (805 bytes) - added by sschmidt 15 years ago.
very simple example of shadowing

Download all attachments as: .zip

Change History (4)

Changed 15 years ago by sschmidt

Attachment: bug3.sin added

very simple example of shadowing

comment:1 Changed 15 years ago by Juergen Reuter

Milestone: v2.0finalv2.0-rc2

comment:2 Changed 15 years ago by kilian

Resolution: fixed
Status: newclosed

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.

comment:3 Changed 14 years ago by Juergen Reuter

Milestone: v2.0-rc2

Milestone v2.0-rc2 deleted

Note: See TracTickets for help on using tickets.