[Issue 4707] auto ref for foreach loops

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 21 20:33:08 PDT 2010


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


nfxjfg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nfxjfg at gmail.com


--- Comment #1 from nfxjfg at gmail.com 2010-08-21 20:33:05 PDT ---
How would this be different from the following (which works)?

void main() {
    foreach(ref x; [1, 2]) {}
}

-- 
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