🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9169

Re: void*

#9169
From: Mike Wexler
Date: Mon, 18 Aug 1986 17:53
15 lines
1513 bytes
I agree that void* should not be automatically coerced to another pointer type.
I like the way the new operator is implemented in C++, but do not think it
would work as well in C.  In C++ operators can be redefined on a type by
type basis and it is convenient to have this operator called at certain
points.  In C, operators are not redefinable.  Therefor memory allocation
becomes a feature of the language and not a library function.  I do not think
this is a good idea.  One of the main advantages of C is that there is
a small kernal of the language that is all that is necessary to create a 
compiler.  The rest of the features are implemented in a library written in
C and replaceable by users that don't have the source code to the compiler.
-- 
Mike Wexler
Email address:(trwrb|scgvaxd)!felix!peregrine!mike
Tel Co. address: (714)855-3923
;-) Internet address: ucivax@ucbvax.BERKELY.EDU!ucivax%felix!mike@peregrine :-(
Technical Details
Message-ID: <1122@peregrine.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!cit-vax!elroy!smeagol!usc-oberon!sdcrdcf!trwrb!scgvaxd!felix!peregrine!mike
References: <5937@alice.uUCp>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!cit-vax!elroy!smeagol!usc-oberon!sdcrdcf!trwrb!scgvaxd!felix!peregrine!mike
From: mike@peregrine.UUCP (Mike Wexler)
Newsgroups: net.lang.c
Subject: Re: void*
Message-ID: <1122@peregrine.UUCP>
Date: Mon, 18-Aug-86 13:53:38 EDT
Article-I.D.: peregrin.1122
Posted: Mon Aug 18 13:53:38 1986
Date-Received: Thu, 21-Aug-86 19:06:42 EDT
References: <5937@alice.uUCp>
Reply-To: mike@peregrine.UUCP (Mike Wexler)
Organization: Peregrine Systems, Inc, Irvine Ca
Lines: 15