[Laszlo-user] overridding core class by inclusion
P T Withington
ptw at openlaszlo.org
Tue Jul 10 17:47:31 PDT 2007
Welcome to dynamic languages. Yes, it is allowed. If you really
wanted to, you could replace the core classes too. And, yes, it will
probably cause a problem if you do.
In general, Javascript emphasizes flexibility over safety. IMO, Java
leans the other way.
On 2007-07-10, at 13:29 EDT, Pierre Augier wrote:
> I all !!
>
> i 'am asking if it's possible to override core class by inclusion
>
> i mean something like this :
> ----------------------------------------------------
>
> #file /mypath/view.lzx
>
> <class name="view">
>
> // my own view class
>
> </class>
>
>
> and later...
>
> #file /myotherpath/myapp.lzx
>
> <include href="/mypath/view.lzx"/>
>
> <canvas>
>
> <!-- use of the overrided class -->
> <view name="lalala" />
>
> </canvas>
>
> ----------------------------------------------------
>
> I've tried with "view" and "text" as class name ==> does
> not work (compilation error)
> then i've tried with "menu" or "button" ==> it
> work althought i get a warning message in debug console
>
> i guess it's because view and text are in the LFC, but menu and
> button are component ...
>
> but my question is:
>
> except for LFC that sems impossible to override, for the other
> class, is this allowed ?? will cause problem ???
>
>
> thanks
>
> Pierre
>
>
More information about the Laszlo-user
mailing list