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


Brad Roberts <bra...@puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|s...@invisibleduck.org      |bra...@puremagic.com


--- Comment #1 from Brad Roberts <bra...@puremagic.com> 2010-11-23 23:15:13 PST 
---
Ok, for #2, I think the right answer is to change _d_arrayappendcT to this:

extern (C) void[] _d_arrayappendcT(TypeInfo ti, Array *x, ...)
{
    version(X86)
    {  
        byte *argp = cast(byte*)(&ti + 2);
        return _d_arrayappendT(ti, x, argp[0..1]);
    }
    else version(X86_64)
    {  
        va_list ap;
        va_start(ap, __va_argsave);
        byte[] argp;
        va_arg(ap, ti.next, argp);
        return _d_arrayappendT(ti, x, argp);
    }
    else
        static assert(false, "unknown version");
}

Builds at least, but can't test it yet.

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

Reply via email to