From: "Peter C. Chapin" <pcc482719@gmail.com>
Subject: Re: Controlling endian-ness?
Date: Tue, 05 Aug 2008 18:14:37 -0400
Date: 2008-08-05T18:14:37-04:00 [thread overview]
Message-ID: <4898d0ca$0$19680$4d3efbfe@news.sover.net> (raw)
In-Reply-To: <IVZlk.289394$SV4.230341@bgtnsc04-news.ops.worldnet.att.net>
anon wrote:
> For using Unsigned_32. Why not just override the built-in Write attributes
> routines for Unsigned_32 by re-writing the attributes routines. This may at
> most require a new package with a few extra attributes routines that may
> be needed. Also, this will also allow you to use "Shift_Left/Shift_Right"
> directly with Unsigned_32.
>
> So in your program you could use:
>
> Data : Unsigned_32 ;
> ...
> Unsigned_32'Write ( Stream_Pointer, Data ) ;
I actually tried something like this but the compiler told me that I
couldn't redefine attributes for that type (or something like that). I
think the problem is that since the type is defined in another package
it is already frozen or some such. It could also be that I did it wrong.
Peter
next prev parent reply other threads:[~2008-08-05 22:14 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 [this message]
2008-08-06 0:16 ` Adam Beneschan
2008-08-06 13:44 ` Peter C. Chapin
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