Any way to set len and ptr in dyn arrays?
nobody at mailinator.com
Tue Aug 8 04:25:41 PDT 2006
Tom S wrote:
> nobody wrote:
>> theArray.myArrayInternals.len = buf * buf;
>> theArray.myArrayInternals.ptr = &buf;
> erm ...
> foo = (&buf)[0 .. buf * buf];
Thanks for your answer. I understand that would ultimately have
the same result. My question is about whether that directly sets
the len and ptr fields or are does more stuff happen. If so what
is it? If not then why is there no direct access to the ptr and
More information about the Digitalmars-d-learn