[squeak-dev] Immediate array of objects?
Taeumel, Marcel
Marcel.Taeumel at hpi.de
Wed Jan 4 16:20:15 UTC 2023
Hi Stephen --
#( ... ) is for literal arrays.
{ ... } is for object arrays.
#[ ... ] is for byte arrays.
I think you want object arrays:
{(80 to: 90) . (60 to: 70)}
Best,
Marcel
Am 04.01.2023 17:04:48 schrieb Stephen Travis Pope <stephen at heaveneverywhere.com>:
Hello all,
Has the interpretation of immediate arrays, i.e., #(obj1 obj2) changed?
I have loads of code (from ST80) that creates arrays of intervals like,
#((80 to: 90) (60 to: 70))
where what I want is,
(Array with: (80 to: 90) with: (60 to: 70))
but Squeak reads this as,
ampl: #(#(80 #to: 90) #(60 #to: 70))
Am I missing something?
stp
--------
Stephen Travis Pope Ojai, California, USA
pastedGraphic.tiff<cid:55B397C7-3D20-4E60-A051-4564245235A7 at sd.cox.net>
http://HeavenEverywhere.com
http://FASTLabInc.com
https://vimeo.com/user19434036/videos
http://heaveneverywhere.com/Reflections
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20230104/1e15f96c/attachment.html>
More information about the Squeak-dev
mailing list
|