[Issue 5788] Return [] array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 3 11:19:36 PDT 2013


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



--- Comment #3 from bearophile_hugs at eml.cc 2013-07-03 11:19:34 PDT ---
currently this code:

void main() {
    int[] emptyArray = [];
}



Produces:

__Dmain comdat
L0:     push    EAX
        mov EAX,offset FLAT:_D11TypeInfo_Ai6__initZ
        push    0
        push    EAX
        call    near ptr __d_arrayliteralTX
        add ESP,8
        xor EAX,EAX
        pop ECX
        ret

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