Page 1 of 1

Missing error on defining two screens with the same name

Posted: Wed Aug 08, 2012 11:47 pm
by apricotorange
Pointed out in http://lemmasoft.renai.us/forums/viewto ... =8&t=16536 ; the following does not lead to an error:

Code: Select all

screen foo:
    textbutton "asdf"

screen foo:
    textbutton "asdf"
This is really confusing.

Re: Missing error on defining two screens with the same name

Posted: Thu Aug 09, 2012 12:52 am
by PyTom
At least for now, this is intentional - it allows you to override a screen that was defined earlier.

(I may at some point tighten the requirement such that it's an error if the screen is defined twice at the same init level.)