Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Sun, 21 Aug 2016 02:58:27 -0500 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: Extending C with GC? References: <60b33d17-71b7-4ecf-a821-dc641e2673ba@googlegroups.com> <87lh0cs5cj.fsf@bsb.me.uk> Date: Sun, 21 Aug 2016 08:58:26 +0100 Message-ID: <87a8g6ime5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:yHEjkXjT2Qupj+wEyjqn5KlnmgE= MIME-Version: 1.0 Content-Type: text/plain Lines: 15 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-jKCEW0XtTafswl/fLtvVDP6OSKBLQ1j3Kez7x2or06x9NyrffWIrZyPVPOyyBWlbka4AznpKFpESHdI!yrD9cq1HV37KngUd5gLBLo+y8cqPNnE4pyZFRIqnHxlWSyWsWMInu5bSi0DbM8roQixWcw== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1857 Xref: csiph.com comp.lang.c:92557 antispam@math.uni.wroc.pl writes: > jacobnavia wrote: >> None since GC-pointers can't be stored in unions. >> And they can't be assigned from normal pointers > > So you eliminate most interesting uses of GC. GC is attractive > when one has complicated data structure connected via pointers. > If you forbid unions, then possible data structures are > signifcantly restricted. I'm sure that's your experience, but my experience is significantly different. In all the code on which I've worked, unions are a fairly niche data structure, mainly restricted to convenience device for accessing memory mapped registers.