Yes .. that was a poor design decision by me.    Violates the 'surprise'
criterion (as you just demonstrated).
 
Still, I've yet to see a programming language that avoids that as well as
Rexx did (especially in 1979 context)!
 
Mike
 


  _____  

From: Ruurd Idenburg [mailto:ru...@idenburg.net] 
Sent: 28 July 2020 20:32
To: oorexx-devel@lists.sourceforge.net
Subject: Re: [Oorexx-devel] A question



I was just curious and I really should have known better, having used rexx
since 1979, but still was a bit surprised

when gotten hit by it, so now it is:

zoom=12;x=13;y=3;loc=zoom'/'||x'/'y'.png'

Ruurd


On 7/28/20 8:21 PM, Mike Cowlishaw wrote:


The same is true for '10001010'b .. a change that unexpectedly broke some
important applications when we introduced it (e.g., LISTSERV).
 
I'd use a different notation, nowadays, for hex and binary constants (see
NetRexx).  Sometimes I tried too much to follow the conventions of earlier
languages.
 
Given, the notation, however, I think the precedence is correct .. consider
a program full of hex strings then someone makes a quick change at the top
of the program and adds a variable called 'x' ...
 
Mike
 
 
 
 
 


  _____  

From: Rick McGuire [mailto:object.r...@gmail.com] 
Sent: 28 July 2020 19:03
To: Open Object Rexx Developer Mailing List
Subject: Re: [Oorexx-devel] A question


Yes, a literal string followed immediately by the symbol x is considered a
hex literal. It's always been that way.  

Rick

On Tue, Jul 28, 2020 at 1:54 PM Ruurd Idenburg <ru...@idenburg.net> wrote:


Is the result below what should be expected: 'something'x taking 
precedent over implied concatenation?

Ruurd

'rexx -v'
Open Object Rexx Version 5.0.0 r12100
Build date: Jul 21 2020
Addressing mode: 64
Copyright (c) 1995, 2004 IBM Corporation. All rights reserved.
Copyright (c) 2005-2020 Rexx Language Association. All rights reserved.
This program and the accompanying materials are made available under the 
terms
of the Common Public License v1.0 which accompanies this distribution or at
http://www.oorexx.org/license.html
   rc = 0 ........................................ rexxtry.rex on LINUX
zoom=12;x=13,y=3;loc=zoom'/'x'/'y'.png'
   Oooops ! ... try again.     Invalid hexadecimal or binary string.
                               Only 0-9, a-f, A-F, and whitespace 
characters are valid in a hexadecimal string; found "/".



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



 
 
_______________________________________________

Oorexx-devel mailing list

Oorexx-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/oorexx-devel

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

Reply via email to