Related articles |
---|
Promoting weak pointers m.helvensteijn@gmail.com (Michiel Helvensteijn) (2009-06-11) |
Re: Promoting weak pointers fset.slb@gmail.com (Scott Burson) (2009-06-15) |
Re: Promoting weak pointers andrew@tomazos.com (Andrew Tomazos) (2009-06-16) |
Re: Promoting weak pointers m.helvensteijn@gmail.com (Michiel Helvensteijn) (2009-06-16) |
Re: Promoting weak pointers m.helvensteijn@gmail.com (Michiel Helvensteijn) (2009-06-16) |
Re: Promoting weak pointers m.helvensteijn@gmail.com (Michiel Helvensteijn) (2009-06-17) |
Re: Promoting weak pointers bobduff@shell01.TheWorld.com (Robert A Duff) (2009-06-17) |
Re: Promoting weak pointers andrew@tomazos.com (Andrew Tomazos) (2009-06-18) |
[2 later articles] |
From: | Scott Burson <fset.slb@gmail.com> |
Newsgroups: | comp.compilers |
Date: | Mon, 15 Jun 2009 11:20:42 -0700 (PDT) |
Organization: | Compilers Central |
References: | 09-06-047 |
Keywords: | linker |
Posted-Date: | 16 Jun 2009 04:55:26 EDT |
On Jun 11, 9:10 am, Michiel Helvensteijn <m.helvenste...@gmail.com>
wrote:
> Hi all!
>
> In September, last year, I posted here asking your opinions on weak
> pointers:
>
> http://compilers.iecc.com/comparch/article/08-09-004
I wasn't in on the previous discussion, but if I had been, I would
have said this:
The term "weak pointer" is a misnomer. Weakness is not a property of
pointers, but rather of locations that hold pointers. It really would
be better to say "weak location".
So you don't "promote a weak pointer to a strong pointer"; you read
the contents of a weak location, which can contain either a pointer or
null.
-- Scott
Return to the
comp.compilers page.
Search the
comp.compilers archives again.