Re: Generics vs. Message passing: object namespaces

Pascal Costanza <[email protected]> Sun, 25 Feb 2007 13:33:28 +0100
Newsgroups gmane.comp.lang.lightweight
Message-ID <[email protected]>
On 25 Feb 2007, at 05:01, Steve Dekorte wrote:

> On 24 Feb 2007, at 10:04 am, Mike Newhall wrote:
>> At 11:59 AM 2/24/2007 +0000, Tom Locke wrote:
>>> In practice, programmers using object-dispatch languages have no
>>> difficulty understanding where a call is going when the see  
>>> something
>>> like "file.name". Yes the namespace is implicit rather than  
>>> explicit,
>>> but people are good at context! Honestly, this is a BIG reason why
>>> people like object-dispatch. It is. Honestly.
>
> And not knowing the type isn't just an unwanted side-effect, it's  
> actually the goal. Dynamic OO is about escaping from fragile and  
> inflexible type dependencies by using type independent messages  
> instead of type dependent functions.

You still haven't told us how you disambiguate the draw message when  
your object inherits both from a weapon and a picture. Especially  
when both draw messages have the same signature.


Pascal

-- 
Pascal Costanza, mailto:[email protected], http://p-cos.net
Vrije Universiteit Brussel, Programming Technology Lab
Pleinlaan 2, B-1050 Brussel, Belgium