http://d.puremagic.com/issues/show_bug.cgi?id=3054


Frits van Bommel <fvbom...@wxs.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fvbom...@wxs.nl




--- Comment #6 from Frits van Bommel <fvbom...@wxs.nl>  2009-06-17 12:53:34 PDT 
---
(In reply to comment #5)
> Oh I see.  If the array is empty then &m_tls[0] will cause a RangeError.  I
> forget that DMD considers taking the address of an array element a
> dereferencing operation.

It's not the address-taking that is a dereference, it's the indexing
(regardless of whether the address of the result is taken). :)

(and if you didn't know, why didn't you use "&t.m_tls[$]" instead of
"&t.m_tls[0] + t.m_tls.length"?)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to