[Laszlo-dev] required attributes and subclasses
Rami Ojares / AMG
rami.ojares at archon.fi
Tue Sep 13 06:10:52 PDT 2011
I also noticed that you have to include the required attributes into mixins
if you want to make the compiler silent.
- rami
On 09/13/2011 03:53 PM, Rami Ojares / AMG wrote:
> One can work around the warnings by including the same attributein the
> subclass.
>
> <class name="A">
> <attribute name="foo" required="true"/>
> </class>
>
> <class name="B" extends="A">
> <attribute name="foo" required="true"/>
> </class>
>
> But this very cumbersome if you have a lot of inheritance and plenty of
> required attributes.
>
> - rami
>
> On 09/12/2011 11:32 AM, Rami Ojares / AMG wrote:
>> Hi,
>>
>> If I define an attribute as required
>> <attribute name="myname" required="true"/>
>> and then extend that class
>> the compiler warns about the missing required attribute even though
>> I don't instantiate the class.
>>
>> - rami
>
More information about the Laszlo-dev
mailing list