* representation of subtypes??
@ 1986-04-05 7:18 Doug Bryan
0 siblings, 0 replies; only message in thread
From: Doug Bryan @ 1986-04-05 7:18 UTC (permalink / raw)
Consider
type Int is range -2E9 .. 2E9;
subtype Small_Int is Int range -32_000 .. 32_000;
May Int'Size and Small_Int'Size yield different values? Namely,
may a subtype have a different representation that its base type?
Finally, may a qualified expression change the representation of
its operand?
Consider
type Fl is digits 12;
subtype Small_Fl is Fl digits 6;
F : Fl := 0.333333333333;
X : Small_Fl := Small_Fl'(F);
May a qualified expression change the value of its operand?
doug
-------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1986-04-05 7:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-04-05 7:18 representation of subtypes?? Doug Bryan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox