Is something odd going on here?
I did not expect Image_Odd1/2 to return floating point images.
Jesper Quorning <jesper.quorning@gmail.com> writes:
Is something odd going on here?
I did not expect Image_Odd1/2 to return floating point images.
Right, this looks like a compiler bug. LRM 3.5(13):
S'Last
S'Last denotes the upper bound of the range of S. The
value of this attribute is of the type of S.
But this is acting like Fpt'Last is universal_real.
On 2021-09-02 19:08, Stephen Leake wrote:Had to go back to Ada 83 LRM to find a chapter 4.10.
Jesper Quorning <jesper....@gmail.com> writes:
Is something odd going on here?
I did not expect Image_Odd1/2 to return floating point images.
Right, this looks like a compiler bug. LRM 3.5(13):
S'Last
S'Last denotes the upper bound of the range of S. The
value of this attribute is of the type of S.
But this is acting like Fpt'Last is universal_real.
No, it is this:
LRM 4.10 (40/5)
"X'Image denotes the result of calling function S'Image with Arg beingLRM 3.5 (35-36) says about the same.
X, where S is the nominal subtype of X."
The question is what is the nominal subtype of Fpt'Last.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 401 |
Nodes: | 16 (2 / 14) |
Uptime: | 09:50:02 |
Calls: | 8,390 |
Calls today: | 16 |
Files: | 13,168 |
D/L today: |
1 files (46K bytes) |
Messages: | 5,901,854 |
Posted today: | 2 |