[Issue 3054] multithreading GC problem. And Stdio not multithreading safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 17 12:53:35 PDT 2009


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


Frits van Bommel <fvbommel at wxs.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fvbommel at wxs.nl




--- Comment #6 from Frits van Bommel <fvbommel at 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: -------


More information about the Digitalmars-d-bugs mailing list