From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4c08cfbd3f797c1c X-Google-Attributes: gid103376,public From: Hans Marqvardsen Subject: Re: simple question - how to emulate void * ? Date: 1998/10/22 Message-ID: <362F13A3.6B63@ddre.dk>#1/1 X-Deja-AN: 404229338 Content-Transfer-Encoding: 7bit References: <9v6hGdgMLuwN-pn2-Oc41W71Dq3U9@dt182n2f.tampabay.rr.com> Content-Type: text/plain; charset=us-ascii Organization: DDRE Mime-Version: 1.0 Reply-To: hm@ddre.dk_nospam Newsgroups: comp.lang.ada Date: 1998-10-22T00:00:00+00:00 List-Id: 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.