From: "W. Wesley Groleau (Wes)" <wwgrol@PSESERV3.FW.HAC.COM>
Subject: Re: fixed point type over an interface.
Date: 1997/02/12
Date: 1997-02-12T00:00:00+00:00 [thread overview]
Message-ID: <9702121344.AA05341@most> (raw)
Matthew Heaney recommended using a rep-spec'ed type for the interface and
converting to/from a local type at each end.
If you are using Ada-83, I know of at least one compiler where a rep-spec
on 'Small cannot be trusted. This compiler always uses a multiple of
four bits for the fractional part, and for the integer part, uses the
smallest multiple of four bits that can hold the range.
If you're using Ada-95, it seems to me that giving each side compatible
compatible definitions of 'Write and 'Read along with the type declaration
is easier than forcing each client to do a conversion.
---------------------------------------------------------------------------
W. Wesley Groleau (Wes) Office: 219-429-4923
Hughes Defense Communications (MS 10-41) Home: 219-471-7206
Fort Wayne, IN 46808 (Unix): wwgrol@pseserv3.fw.hac.com
---------------------------------------------------------------------------
next reply other threads:[~1997-02-12 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-12 0:00 W. Wesley Groleau (Wes) [this message]
1997-02-12 0:00 ` fixed point type over an interface Robert Dewar
1997-02-12 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox