[ENH] Comma concatenation for Object
Brent Pinkney
brent_pinkney at yahoo.co.uk
Fri Dec 6 10:31:44 UTC 2002
Folks,
It is possible to concatenate Collections together
using the #, method.
However, if the receiver or args are not Collections
this is a DNU.
Since Object>>#asArray already exists, Object>>#,
should also be included.
e.g.
5, 6 ---> #(5 6)
5, #(6 7) ---> #(5 6 7)
#(6 7), 8 ---> #(6 7 8)
Cheers
Brent
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CommaConcatObjects.1.cs
Type: application/octet-stream
Size: 875 bytes
Desc: CommaConcatObjects.1.cs
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20021206/fd6c09b6/CommaConcatObjects.1.obj
More information about the Squeak-dev
mailing list
|