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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,af247e41be5f18ab X-Google-Attributes: gid103376,public From: dale@cs.rmit.edu.au (Dale Stanbrough) Subject: Re: simple question - how to emulate void * ? Date: 1998/10/24 Message-ID: #1/1 X-Deja-AN: 404583906 References: <9v6hGdgMLuwN-pn2-Oc41W71Dq3U9@dt182n2f.tampabay.rr.com> <36308AA6.86327E09@spam.innocon.com> X-Complaints-To: abuse@cs.rmit.edu.au X-Trace: emu.cs.rmit.edu.au 909231572 14718 131.170.27.23 (24 Oct 1998 12:19:32 GMT) Organization: RMIT NNTP-Posting-Date: 24 Oct 1998 12:19:32 GMT Newsgroups: comp.lang.ada Date: 1998-10-24T12:19:32+00:00 List-Id: Jeff Carter wrote: "Well, some of the responses showed how to implement this exact capability (print anything as an array of characters) and something along the lines of what is really desired (print anything as an array of bytes), but the real answer should be, "You should not try to emulate 'void *' in Ada."." You should also be careful of scaring people away. Many people want to know if they can do a task in a particular way, i replied that they could (I often get asked "can Ada call "system"?" - there is a hell of a lot of ignorance out there (well, amongst students at least, but I would imagine that exactly the same happens elsewhere). Showing people that yes, Ada can do it in exactly this way _is_ a useful thing to show. People can then walk away and say "ok, so i can do all of those things that C can. Maybe it's not so bad...". rather than... "i asked them how to do this, and all they did was say i was wrong and to stop doing it that way." Technically you may be correct, but that's no use if the person goes away with a feeling in the back of their mind that says C still has it over Ada in some areas. Note i did also say that streams were probably a better way of doing it. Dale