Array is a class, not a message. This is /not/ elegant and simply doesn't make sense. This is my last comment on this approach.<br><br>What is possible is:<br><br>self add: (Kernel-Array new: 4).<br><br>Here, #- is a message.
<br><br>Michael.<br><br><br><div><span class="gmail_quote">On 9/19/07, <b class="gmail_sendername">Brent Pinkney</b> <<a href="mailto:brent@zamail.co.za">brent@zamail.co.za</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>+10000 for:<br><br>self add: (Kernel Array new: 4).<br><br>This mechanism preseves the elegant foundation of Smalltalk: 'Everyting is an Object, which receives a messages and returns an object'.<br>In this (Dan's ?) solution, the implementation is late bound and can use the same lookup algorithm as used for messages.
<br><br>The other solutions lack this elegance.<br><br>On Dinsdag, 18 September 2007, Ron Teitelbaum wrote:<br>> +1 for ::<br>><br>> Even if it is really<br>><br>> self add: (Kernel::Array new: 4).<br>><br>
> :)<br>><br>> Ron<br>><br>> > -----Original Message-----<br>> > From: <a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org">squeak-dev-bounces@lists.squeakfoundation.org</a> [mailto:<a href="mailto:squeak-dev-">
squeak-dev-</a><br>> > <a href="mailto:bounces@lists.squeakfoundation.org">bounces@lists.squeakfoundation.org</a>] On Behalf Of Bert Freudenberg<br>> > Sent: Tuesday, September 18, 2007 6:31 AM<br>> > To: The general-purpose Squeak developers list
<br>> > Subject: Re: Quick comparison of two Namespaces proposals<br>> ><br>> > On Sep 18, 2007, at 11:55 , Michael van der Gulik wrote:<br>> ><br>> > > self add: Kernel.Array new: 4.<br>> > > self add: Kernel::Array new: 4.
<br>> > ><br>> > > What do other people think?<br>> ><br>> > +10 for ::<br>> ><br>> > Though I hope this won't become a bikeshed discussion of syntax, but<br>> > actually result in a Namespace solution getting adopted.
<br>> ><br>> > - Bert -<br>> ><br>> ><br>><br>><br>><br>><br><br><br><br></blockquote></div><br>