comp.lang.ada
 help / color / mirror / Atom feed
From: Hans Marqvardsen <hm@ddre.dk>
Subject: Re: simple question - how to emulate void * ?
Date: 1998/10/22
Date: 1998-10-22T00:00:00+00:00	[thread overview]
Message-ID: <362F13A3.6B63@ddre.dk> (raw)
In-Reply-To: dale-2310981318260001@dale.ppp.cs.rmit.edu.au

Hello Craig!
Since you say, you're new to Ada,
here is 2 further hints regarding Dales program:

	The 'Size attribute is defined for any data-element
	giving its size in bits.  Use 'Size instead of 'Length.
	(remember to divide by Storage_Unit)

	Probably the number 1 should be casted as type 
	Storage_offset before it is added to a System.address. 
	(At least the OA compiler says so)  

With these inclusions, Dales program will truly do the job, 
not only for strings, but for any data-type passed, 
for example integers, floats or records.
(Compiles and works on OA 7.1.1, Windows NT)

Hans.

Sorry for not including Dales original program.
My Netscape wont allow more included text than new text.




  parent reply	other threads:[~1998-10-22  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-23  0:00 simple question - how to emulate void * ? Craig Allen
1998-10-23  0:00 ` Dale Stanbrough
1998-10-22  0:00   ` Hans Marqvardsen
1998-10-23  0:00     ` John McCabe
1998-10-23  0:00       ` dennison
1998-10-23  0:00       ` Ed Falis
1998-10-23  0:00         ` dennison
1998-10-24  0:00           ` Joe Wisniewski
1998-10-25  0:00           ` dewar
1998-10-24  0:00         ` Dale Stanbrough
1998-10-24  0:00           ` Tucker Taft
1998-10-24  0:00           ` Robert A Duff
1998-10-22  0:00   ` Hans Marqvardsen [this message]
1998-10-23  0:00   ` David C. Hoos, Sr.
1998-10-23  0:00   ` David C. Hoos, Sr.
1998-10-23  0:00 ` Tom Moran
1998-10-23  0:00 ` Jeff Carter
1998-10-24  0:00   ` Dale Stanbrough
1998-10-25  0:00     ` dewar
1998-11-05  0:00 ` Craig Allen
1998-11-06  0:00   ` Dale Stanbrough
1998-11-06  0:00     ` Matthew Heaney
1998-11-06  0:00       ` dewarr
1998-11-06  0:00   ` Tom Moran
replies disabled

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