comp.lang.ada
 help / color / mirror / Atom feed
From: dale@cs.rmit.edu.au (Dale Stanbrough)
Subject: Re: simple question - how to emulate void * ?
Date: 1998/10/24
Date: 1998-10-24T12:19:32+00:00	[thread overview]
Message-ID: <dale-2410982221230001@dale.ppp.cs.rmit.edu.au> (raw)
In-Reply-To: 36308AA6.86327E09@spam.innocon.com

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




  reply	other threads:[~1998-10-24  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 ` Tom Moran
1998-10-23  0:00 ` Dale Stanbrough
1998-10-22  0:00   ` Hans Marqvardsen
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           ` Robert A Duff
1998-10-24  0:00           ` Tucker Taft
1998-10-23  0:00   ` David C. Hoos, Sr.
1998-10-23  0:00   ` David C. Hoos, Sr.
1998-10-23  0:00 ` Jeff Carter
1998-10-24  0:00   ` Dale Stanbrough [this message]
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