Re: Using GNAT.Sockets with Streams and Byte Swapping



Florian Weimer wrote:

> Mark is not using an Ada 95 compiler, it seems. It used to be more
> difficult because the size of the base type determined the number of
> stream elements used, and the representation clause doesn't change it.

Read again. He _changed_ the size of the base type. (Universal_Integer
doesn't have a fixed size, does it?)


Vinzent.

--
worst case: The wrong assumption there actually is one.
.



Relevant Pages

  • Re: Using GNAT.Sockets with Streams and Byte Swapping
    ... Simon Wright: ... Mark is not using an Ada 95 compiler, ...
    (comp.lang.ada)
  • Re: Conversion from floating point to signed 16 bits
    ... a "discrete" value which is a signed 16 bits integer. ... Is there an other way to do this in Ada (Representation? ... Extending your assumptions about the base type of Analog_Value ... subtype Analog_Value is Working_Base range 0.0 .. ...
    (comp.lang.ada)
  • Re: New limited range type?
    ... This is a consequence of the principle in Ada that predefined ... if A + B is within the range of the base type, the result of A + B - C ... outside the base range for the type then the permitted result set could ... language, as you can't do it right by overloading the math operations. ...
    (comp.lang.ada)
  • Re: Issues with LibMad
    ... > The compiler says that the bit width is too large. ... allowed to accept `long' as the base type, ... count wider than the compiler's notion of `int'. ...
    (comp.lang.c)