On Wed, 11 May 2022, at 15:40, Rony G. Flatscher wrote:
> On 11.05.2022 16:05, Jeremy Nicoll wrote:
>> On Sun, 8 May 2022, at 19:15, Rony G. Flatscher wrote:
>>
>>>      center=(0,0,0) -- array for center point
>> Why does that not need to be something like
>>
>>      center = .array~new(0,0,0)    ?
>
> Ah, this is new syntax sugar in ooRexx 5.0, a comma separated list
> of values - depending on the location - will cause the creation of
> an array object containing the comma separated items.

I looked (before posting) in an oorexx v5 reference manual, but 
admittedly not a recent one, at both the general syntax (of the 
various ways of making an assignment - Chapter 1, section 1.13)
and all the text about the .array class.

Looking again, I see this feature is described in the section on 
"Terms" etc, which obviously covers its inline use as well.

But the simplest use is in an assignment statement, where 
previously something like 

   a = (        whatever    )

always(?) meant that the parentheses were just, for example,
overriding default operator precedence in the 'whatvever'
expression.

I think there needs to be some text in the Assignment doc that
points people at this radical step away from traditional Rexx 
syntax, and also something in the .class doc.  (Maybe there is
now, compared with my older v5 manual.)

-- 
Jeremy Nicoll - my opinions are my own.


_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to