[squeak-dev] Immediate array of objects?

Stephen Travis Pope stephen at heaveneverywhere.com
Wed Jan 4 16:40:08 UTC 2023


Mille Grazie!

stp

--------

Stephen Travis Pope    Ojai, California, USA
    
     http://HeavenEverywhere.com
     http://FASTLabInc.com
     https://vimeo.com/user19434036/videos
     http://heaveneverywhere.com/Reflections



> On Jan 4, 2023, at 8:20 AM, Taeumel, Marcel <Marcel.Taeumel at hpi.de> wrote:
> 
> 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/93afb4be/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 2442 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20230104/93afb4be/attachment-0001.tiff>


More information about the Squeak-dev mailing list