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


Jarrett Billingsley <jarrett.billings...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jarrett.billings...@gmail.c
                   |                            |om




--- Comment #1 from Jarrett Billingsley <jarrett.billings...@gmail.com>  
2009-07-03 08:42:11 PDT ---
No.  This is working as intended.  What you're doing here is shadowing the
global 'c' with a local 'c'.  Symbol lookup in D is simple: it looks in
enclosing scopes until it finds a symbol of the given name, no matter how
you're using that name.  If you're porting code from another language, you're
going to have to expect some translation work.  And besides, what's so
difficult about "c c = new c;", or better yet, _not doing it in the first
place_?

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

Reply via email to