From: Bryan@SU-SIERRA.ARPA (Doug Bryan)
Subject: representation of subtypes??
Date: Sat, 5-Apr-86 02:18:18 EST [thread overview]
Date: Sat Apr 5 02:18:18 1986
Message-ID: <8604050731.AA21641@ucbvax.berkeley.edu> (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
-------
reply other threads:[~1986-04-05 7:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox