Thanks Mark, much clearer now. Perhaps mentioning this distinction in the doc may be worthwhile to save someone else from falling into this rabbit hole? Thanks again. Cheers - Felix On Wed, Feb 15, 2023 at 6:18 PM Mark Hessling rexx@users.sourceforge.net wrote: I'll use 'converted' rather than 'interpreted'. Lets use the string '5A5A' instead of '1234' in the explanation; it should be clearer. When Rexx sees '5A5A' it is a character string, but it has the potential to be a hexidecimal string depending...
Hi Mark, Thanks for your response. Sorry, I don't understand your distinction between "interpreted as' and 'is' ? If Regina interprets the string as a Hexadecimal string then why doesn't it process it as such? Cheers - Felix On Tue, 14 Feb 2023, 7:24 pm Mark Hessling, rexx@users.sourceforge.net wrote: Any hexadecimal (0-9, a-f, A-F) characters, grouped in pairs, enclosed in single or double quotes and immediately followed by 'x' or 'X' IS INTERPRETED as a hexadecimal string. ie the Rexx interpreter...
Thanks Mark - but I'm confused ??? On p.18 there is a definition of Hexadecimal string Hexadecimal String Any hexadecimal (0-9, a-f, A-F) characters, grouped in pairs, enclosed in single or double quotes and immediately followed by 'x' or 'X' is interpreted as a hexadecimal string. (The "X" is outside of the quotes). If the first group has an odd number of characters, a zero is prepended. Examples: Hexadecimal String '0def'x "01 02 03"X '123 45'x → same as '01 23 45'x on page 126 X2D(hexstring [,length])...
Further both error messages use the term " X2D argument 1 must be a hexadecimal string; " perhaps the doc needs to be clearer and unambiguous ? On Tue, Feb 14, 2023 at 2:27 PM Felix Hofmann aleph613@users.sourceforge.net wrote: [bugs:#584] https://sourceforge.net/p/regina-rexx/bugs/584/ Hexadecimal seems to have a Hex ?* Status: open Group: Created: Tue Feb 14, 2023 03:27 AM UTC by Felix Hofmann Last Updated: Tue Feb 14, 2023 03:27 AM UTC Owner: nobody Two instances of difficulty with Hex First:...
Hexadecimal seems to have a Hex ?
Silly syntax typo causes Regina to CRASH
No - I thought I was comparing two character strings - both enclosed in quotes. I didn't realise they would be converted to numeric values - and certainly not numeric values in scientific notation. I learnt a few lessons from this one. - Sorry for the false alarm.
Fun'e' 'e'quality - Very Fun'e'