[Issue 1245] static foreach shouldn't define new scope and introduce new variables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 18 21:41:59 PST 2009


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



--- Comment #6 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2009-11-18 21:41:58 PST ---
I just tested this both my codes (from "Description" and "Comment 5") in DMD
2.032, and they works correctly! (only switch isn't full optimal in asm, but
this not conected with this bug).

BCS's example with nop's is also not optimal, there are some operations on EBP
register:
        mov    dword ptr -034h[EBP],1
        nop
        mov    dword ptr -02Ch[EBP],2
        nop
        mov    dword ptr -024h[EBP],3
        nop
        mov    dword ptr -01Ch[EBP],5
        nop
        mov    dword ptr -014h[EBP],6
        nop
        mov    dword ptr -0Ch[EBP],7
        nop


I don't remember any changelog entry mentioning anything about foreach over
tuples... Anyone want to enlighten me? :) And what about DMD 1.x?

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