[dojo-contributors] dojo.lang.inherits

Sandro Magi smagi at naasking.homeip.net
Thu Apr 6 11:15:18 EDT 2006


http://en.wikipedia.org/wiki/Delegation_%28programming%29

"Delegation is a fundamental technique used in languages of
prototype-based programming (such as JavaScript)"


Bill Keese wrote:
> What does delegate mean?  I'm thinking delegate means something similar
> to "inherit", which isn't appropriate in this case because it's not just
> inheritance, it's the whole class definition (the combination of
> constructor, dojo.inherits, and dojo.extends)
> 
> Sandro Magi wrote:
>> +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
> 




More information about the dojo-contributors mailing list