Quick comparison of two Namespaces proposals
blake at kingdomrpg.com
Wed Sep 19 18:11:45 UTC 2007
On Wed, 19 Sep 2007 02:33:19 -0700, Michael van der Gulik
<mikevdg at gmail.com> wrote:
> On 9/19/07, Paolo Bonzini <bonzini at gnu.org> wrote:
>> > What is possible is:
>> > self add: (Kernel-Array new: 4).
>> > Here, #- is a message.
>> > Michael.
>> And what is Array? :-) I understand that you could use "Kernel-#Array"
>> or something similar, but "Kernel/Array" seems hard to get right in the
> Array is a class.... which the Kernel namespace uses to look up.... oh, I
> see your point.
> Okay, bad design :-P.
I was looking at it more like:
self add: (Kernel-#Array new: 4).
But I guess without the # the namespace object wouldn't see "Array" it
would only see an undefined object?
More information about the Squeak-dev