[Laszlo-dev] [Laszlo-user] Extending LzDataElement
Henry Minsky
henry.minsky at gmail.com
Tue Jun 5 19:23:46 PDT 2007
[moving this to laszlo-dev]
The error it gets is
extend.lzx:4:56: undefined superclass LzDataElement for class myDataElement
The <class> tag is really only built to make classes which inherit from
LzNode or a subclass of LzNode.
LzDataElement is a subclass of LzDataNode, which doesn't inherit from
LzNode.
I suppose it would be possible to make the LZX <class> tag implementation
support extending classes that were not derived from LzNode. It couldn't
really
know anything about attribute types from the superclass,, but it could
define a new class and skip all the
LzNode-specific stuff.
BTW, as of OpenLaszlo 4.0, we support the ECMAScript "class" keyword in
script, so you can say "class foo extends bar { ....} " for arbitrary
classes in our class system.
On 6/5/07, P T Withington <ptw at openlaszlo.org> wrote:
>
> What are the errors? And, what do you want to do with this class?
>
> On 2007-06-05, at 21:01 EDT, Pablo Kang wrote:
>
> > Can someone explain to me why I get compilation errors when
> > extending LzDataElement? Is there a way I can?
> >
> > <class name="myDataElement" extends="LzDataElement"/>
> >
> > I'm using OLS 3.4.
> >
> > pablo
> >
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20070605/4c11cb8d/attachment.html
More information about the Laszlo-dev
mailing list