Related articles |
---|
Adding garbage collection to C++ Dain.Samples@UC.EDU (1992-08-11) |
Re: Adding garbage collection to C++ tmb@arolla.idiap.ch (1992-08-12) |
Re: Adding garbage collection to C++ mw@ki.fht-mannheim.de (1992-08-13) |
Re: Adding garbage collection to C++ kelvin@kickapoo.cs.iastate.edu (1992-08-13) |
Re: Adding garbage collection to C++ fjh@cs.mu.OZ.AU (1992-08-14) |
Re: Adding garbage collection to C++ jos@and.nl (1992-08-14) |
Re: Adding garbage collection to C++ henry@zoo.toronto.edu (1992-08-14) |
Re: Adding garbage collection to C++ bill@amber.ssd.csd.harris.com (1992-08-14) |
Re: Adding garbage collection to C++ pardo@cs.washington.edu (1992-08-15) |
Re: Adding garbage collection to C++ tmb@idiap.ch (1992-08-17) |
Re: Adding garbage collection to C++ tmb@idiap.ch (1992-08-17) |
Re: Adding garbage collection to C++ hudson@cs.umass.edu (1992-08-17) |
Re: Adding garbage collection to C++ fjh@munta.cs.mu.OZ.AU (1992-08-18) |
[4 later articles] |
Newsgroups: | comp.compilers |
From: | henry@zoo.toronto.edu (Henry Spencer) |
Organization: | U of Toronto Zoology |
Date: | Fri, 14 Aug 1992 21:29:17 GMT |
References: | 92-08-052 92-08-063 |
Keywords: | C, GC |
our moderator writes:
>[It is my impression that an ANSI C program is allowed to copy a pointer to
>a long and later back to a pointer of the same type...
Yes, but it doesn't promise what you'll get. Many older definitions of C
promised that you could convert a pointer to a suitably-large integer
(long isn't necessarily large enough!) and then back again unchanged.
Some of the ANSI C drafts also promised that. The final standard does
not.
Don't feel bad about overlooking this, Dennis Ritchie missed it too...
which is why even revised K&R2 gets this wrong. (Unless there's been a
chance for another revision recently; Dennis does know about this.)
--
Henry Spencer @ U of Toronto Zoology, henry@zoo.toronto.edu utzoo!henry
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.