[squeak-dev] Re: Unload Traits script (response to edgar)

Trygve Reenskaug trygver at ifi.uio.no
Wed May 14 17:39:11 UTC 2008



On 14.05.2008 16:21, itsme213 wrote:
> "Andreas Raab" <andreas.raab at gmx.de> wrote in
>   
>> Trygve Reenskaug wrote:
>>     
>>> A role is played by an object at run time. This object can be an instance 
>>> of any class that implements its trait. So the trait is tied to a 
>>> fundamental abstraction that is on the same level as the class.
>>>       
>> Interesting. But aren't you describing interfaces?
>>     
>
> The role itself is better compared to a variable than to an interface. The 
> corresponding trait can provide an interface definition, as well as an 
> implementation that refers to other related roles. I think Trygve figured 
> out a way to extend the compiler so that the method bodies (typically in 
> traits, I expect) can use distinguished "Role variables", which the compiler 
> translated into a dynamic lookup query.
>
> My 2c guesses :-)
>
> Sophie
>   
Exactly, that's what I am doing.
--Trygve
-- 

Trygve Reenskaug       mailto: trygver at ifi.uio.no

Morgedalsvn. 5A         http://heim.ifi.uio.no/~trygver

N-0378 Oslo               Tel: (+47) 22 49 57 27

Norway

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080514/b63cf0ac/attachment.htm


More information about the Squeak-dev mailing list