home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compilers
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!yale.edu!yale!mintaka.lcs.mit.edu!spdcc!iecc!compilers-sender
- From: henry@zoo.toronto.edu (Henry Spencer)
- Subject: Re: Adding garbage collection to C++
- Reply-To: henry@zoo.toronto.edu (Henry Spencer)
- Organization: U of Toronto Zoology
- Date: Fri, 14 Aug 1992 21:29:17 GMT
- Approved: compilers@iecc.cambridge.ma.us
- Message-ID: <92-08-075@comp.compilers>
- References: <92-08-052@comp.compilers> <92-08-063@comp.compilers>
- Keywords: C, GC
- Sender: compilers-sender@iecc.cambridge.ma.us
- Lines: 18
-
- 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
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-