[dojo-contributors] dojo.lang.inherits

Scott J. Miles sjmiles at turbophp.com
Thu Apr 6 13:54:32 EDT 2006


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
 




More information about the dojo-contributors mailing list