[Issue 3131] better type resolve

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 3 08:42:13 PDT 2009


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


Jarrett Billingsley <jarrett.billingsley at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jarrett.billingsley at gmail.c
                   |                            |om




--- Comment #1 from Jarrett Billingsley <jarrett.billingsley at 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: -------


More information about the Digitalmars-d-bugs mailing list