Newbie question

Jason Johnson jason.johnson.081 at gmail.com
Mon Jul 30 17:58:34 UTC 2007


On 7/30/07, Klaus D. Witzel <klaus.witzel at cobss.com> wrote:
>
> On Mon, 30 Jul 2007 18:04:04 +0200, J J (in a hard-to-read HTML message :)
> wrote:
>
> > That would probably require a big change to
> > implement and you end up with something Smalltalk can already do other
> > ways, and become (more) incompatible with other dialects.
>
> You can always do ^ {this. and / or. that} for returning multiple values,
> without any change in Squeak.



Yes, that's why I said "something Smalltalk can already do".  But  what
Smalltalk couldn't do here (without modifications) is catch that return in
two (or more) separate  values in one line as:

|a b|
{a.b} := someFunctionReturningTwoValues
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20070730/27078b81/attachment.htm


More information about the Squeak-dev mailing list