comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter C. Chapin" <pcc482719@gmail.com>
Subject: Re: Controlling endian-ness?
Date: Wed, 06 Aug 2008 09:44:07 -0400
Date: 2008-08-06T09:44:07-04:00	[thread overview]
Message-ID: <4899aaa6$0$19662$4d3efbfe@news.sover.net> (raw)
In-Reply-To: <66265b13-8e35-4bc7-8e9f-7c4d76adb5b7@b38g2000prf.googlegroups.com>

Adam Beneschan wrote:

>      type My_Unsigned_32 is new Unsigned_32;
>      procedure My_Write
>        (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
>         Item   : in My_Unsigned_32);
>      for My_Unsigned_32'Write use My_Write;

You're right that works. I actually thought I tried using a derived type 
before, but evidently I didn't do it right. Anyway thanks for the 
suggestion.

Peter



  reply	other threads:[~2008-08-06 13:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05  2:16 Controlling endian-ness? Peter C. Chapin
2008-08-05  3:10 ` Steve
2008-08-05  9:59   ` Peter C. Chapin
2008-08-05  5:23 ` christoph.grein
2008-08-05  9:59   ` Peter C. Chapin
2008-08-05 14:59 ` anon
2008-08-05 22:14   ` Peter C. Chapin
2008-08-06  0:16     ` Adam Beneschan
2008-08-06 13:44       ` Peter C. Chapin [this message]
2008-08-06 17:07     ` Controlling endian-ness? (Example: Attribute Overriding) anon
2008-08-12 13:42     ` Controlling endian-ness? Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox