Re: Generics vs. Message passing: object namespaces
[email protected] Fri, 23 Feb 2007 22:54:29 -0500 (EST)
| Newsgroups | gmane.comp.lang.lightweight |
|---|---|
| Message-ID | <[email protected]> |
> What do you mean by `primary'? Is it an observable property?
>
> When you are selecting a method through a two-dimensional dispatch (which
> you
> must be doing regardless because that is the dimension of the method
> space)
> it makes not one whit of difference if you choose the row first or the
> column first,
> you still end up at the same location.
Hmm, not sure where the misunderstanding is here. I think it's pretty
clear: with obj1.foo, I look in the namespace associated with 'obj1'.
With obj2.foo, I look in the namespace associated with 'obj2'. With
(foo obj1), I look in the same namespace that functions are looked up
in. With (foo obj2), I also look in the same namespace functions are
looked up in. In the latter two cases, it's the same namespace. In
the former two cases, they are different namespaces.
It's not a grid, but a graph; cadr is not the same thing as cdar.