[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c

Re: A C without void*

John Bode

3/21/2011 8:00:00 PM

On Monday, March 21, 2011 12:26:59 PM UTC-5, Kenneth Brody wrote:
> On 3/20/2011 4:07 PM, Dr Nick wrote:
> > Spiros Bousbouras<spi...@gmail.com> writes:
> >
> >> Why does C have void* ? Imagine a C' where the functionality that void*
> >> provides would be provided instead by unsigned char* plus what
> >> unsigned char* usually does. In what way would C' be inferior to C ?
> >
> > Imagine? Some of us remember it! (modulo the "unsigned" bit).
>
> BTDTGTTS.
>

Best acronym evar.

> Lots of casts upon malloc() come to mind. As do all of the casts for
> "generic" pointers passed around.

I did it enough to know I never, ever want to do that again. *Huge* source of heartburn.