Dear Walter,
The text of the motion M004.02 says in 6.6.2 that interval literal is
"A string [ l , u ] where l and u are optional number literals of the same radix (10 or 16) with l <= u,
l < +oo and u > -oo, see 4.2...."
In a string s = "[ 0x0.0p0 , 1.0 ]" l is of radix 16 and u is of radix 10.
So string s is not an interval literal.
Hence the constructor textToIInterval(s) must fail with result [ Empty ] and signal
InvalidOperation exception.
This differs from 1788 where "[ 0x0.0p0 , 1.0 ]" is an interval literal.
-Dima
----- Original Message -----
From: walter.mascarenhas@xxxxxxxxx
To: dmitry.nadezhin@xxxxxxxxxx
Cc: stds-1788@xxxxxxxxxxxxxxxxx
Sent: Monday, September 26, 2016 9:04:51 PM GMT +03:00 Iraq
Subject: Re: An amendment to the motion P1788.1/M004.02
Dear Dima,
I am working on implementing P1788.1 at this
very moment, and I do not see why your
string
char *s = "[ 0x0.0p0 , 1.0 ]";
would lead to empty instead of [0.0, 1.0].
Why is this the case?
regards,
walter.