On 2006-10-25, at 09:08 EDT, Philip Romanik wrote:

[...]

I've got a question for you. If you create an <attribute> tag using an existing variable name (from LzNode), does it point to the underlying variable?

If you give it no initial value, you will see the inherited value. If you give it a value, you are effectively overriding the inherited value. `attribute` is the LZX equivalent to a Javascript instance `var`. The property will be shared.

Note that the compiler will warn you if you declare the same attribute twice in a class. It should also warn you if you override an inherited attribute (and you should be able to declare that you intend to, to silence the warning). It is difficult to do this for the built-in tags because the compiler does not know all their attributes (although it should).

Reply via email to