comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Ada Examples and Problems
Date: Thu, 12 Apr 2001 01:41:50 GMT
Date: 2001-04-12T01:41:50+00:00	[thread overview]
Message-ID: <yJ7B6.11023$ix4.8084169@news1.rdc1.sfba.home.com> (raw)
In-Reply-To: 0F2B6.4430$Ow3.938359@news2-win.server.ntlworld.com


>Maybe this would be a good idea for addition in Ada 0y.  An attribute that
>gives the total number of bytes/bits occupied by the fields not the record
>size.
>T'field_bytes
  The size in memory does not necessarily relate to the size in 'write.
It would be legal (if weird) for the 'write to write the bytes values
as comma separated integers, each expressed in Roman numerals.

>> time how many bytes something is going to occupy in a stream, but Ada
>> does not require that an ability to make that determination for all
>> types be available.
  You can determine it at run time by creating a dummy stream with
your own
procedure Write(Stream : in out My_Type; Item : in Stream_Element_Array);
and having that note Item'length for 'Writes on various things.



  reply	other threads:[~2001-04-12  1:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-10 13:38 Ada Examples and Problems chris.danx
2001-04-10 17:53 ` chris.danx
2001-04-10 17:57   ` chris.danx
     [not found] ` <ERFA6.2041$FY5.146015@www.newsranger.com>
2001-04-11  9:51   ` chris.danx
2001-04-11 15:34     ` Ted Dennison
2001-04-11 17:18       ` chris.danx
2001-04-11 17:43         ` chris.danx
2001-04-11 19:01           ` Marc A. Criley
2001-04-11 19:56             ` chris.danx
2001-04-12  1:41               ` tmoran [this message]
2001-04-12 15:28         ` Ted Dennison
2001-04-12 18:56           ` chris.danx
2001-04-12 19:01             ` chris.danx
2001-04-12 21:47             ` Ted Dennison
2001-04-13  8:40               ` chris.danx
2001-04-12  1:41     ` tmoran
2001-04-12 10:15       ` chris.danx
replies disabled

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