[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: object-oriented C programming



On Tue, Dec 05, 2000 at 12:12:04PM -0500, David Greene wrote:
> On Tue, 5 Dec 2000, David Starner wrote:
> 
> > C/C++ with the Boehm-Weiser GC will let you chose what you want garbage
> > collected and not. So will Modula-3, but that's moribund. 
> 
> Precisely my point.  Garbage collection is a library issue and IMHO
> shouldn't be forced upon the developer by the language.  

The minor problems with that, is that there are language constructs
that can't be supported without GC, and language-based GC can be much
quicker than library based GC, which can't distinugish between a int and
a pointer. Some C constructs can also lead a GC to collect something it
shouldn't. Library-based garbage collection is seriously inferior to
language (or better yet, system)-based garbage collection. 

-- 
David Starner - dstarner98@aasaa.ofe.org
http://dvdeug.dhis.org
"(You see, the best way to solve a problem is to rigorously define it in
terms of other people's problems and then run away quickly.)"
   -- Roland McGrath <frob@debian.org>



Reply to: