[dojo-contributors] dojo.lang.inherits

Tom Trenka ttrenka at gmail.com
Thu Apr 6 14:10:44 EDT 2006


Scott--
What are you referring to, Sandro's link or JS?  Delegation *is* the
inheritance model in JS, that's what the prototype system implements...

trt

On 4/6/06, Scott J. Miles <sjmiles at turbophp.com> wrote:
>
> IMO, what we have here is a type of mass delegation, potentially an entire
> interface's worth. Additionally, where the new object does not contain a
> new
> implementation of a method, it acquires the superclass method (or any
> property). Overall, I would say this is more generally an inheritence
> operation.
>
> Regards,
> Scott J. Miles
> TurboAjax Group
> http://www.turboajax.com
>
> -----Original Message-----
> From: dojo-contributors-bounces at dojotoolkit.org
> [mailto:dojo-contributors-bounces at dojotoolkit.org] On Behalf Of Sandro
> Magi
> Sent: Thursday, April 06, 2006 4:43 AM
> To: dojo dev.
> Subject: Re: [dojo-contributors] dojo.lang.inherits
>
> +1 to delegate.
>
> It's closer to the proper concept.
>
> Sandro
>
> Alex Russell wrote:
> > To address Jesse's point, how about a name like:
> >
> >       dojo.delegate(subclass, superclass, { ... });
> >
> > ?
> >
> > On Wednesday 05 April 2006 5:33 pm, Scott J. Miles wrote:
> >> dojo.defineClass(subclass, superclass, { constructor: ..., param1:
> >> ..., func1: ... });
> >>
> >> +1
> >>
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-contributors
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.3.5/302 - Release Date: 4/5/2006
>
>
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-contributors
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20060406/7db7130b/attachment.htm 


More information about the dojo-contributors mailing list