String to boolean inconsistency

Simen kjaeraas simen.kjaras at gmail.com
Sat Dec 11 19:08:33 PST 2010


Jonathan M Davis <jmdavisProg at gmx.com> wrote:

> This behavior is intended. Arrays are actually something like this under  
> the hood:
>
> struct array(T)
> {
>     T* arr;
>     size_t length;
> }

Actually, that is:

struct array(T)
{
     size_t length;
     T* ptr;
}

To get the layout and names right.
( http://digitalmars.com/d/2.0/abi.html )

-- 
Simen


More information about the Digitalmars-d mailing list