interface is pretty much of a kludge right now.  It was created mostly to 
support LZO's.  It is used in a few hand-coded components, but the compiler 
implementation is pretty minimal.

You should be able to define <method> signatures in an interface also.  This is 
the main purpose of interfaces in a language, to define a protocol that you 
know will be obeyed.

I can't think of a reason to use interfaces in normal LZX programming, since 
every example I could think of is better served by using mixin instead.

The use in drawview is essentially like Max hand-wrote an LZO:  He declares 
that there is a tag named drawview, and then implements the entire tag in 
Javascript.  Without pretty deep internal knowledge of the implementation of 
tags, this is not something a normal user can (or would need to) do.

On 2010-10-13, at 08:04, Lou Iorio wrote:

> I need to create a reference page for the <interface> tag.
> 
> Can someone supply me a definition and simple example?
> 
> I see it used in drawview like this:
> 
> <interface name="drawview" extends="view">
> 
> Are there other attributes?


Reply via email to