Several questions (about inline assembly, ddoc for templates, and foreach)

Marcio m.faustino at gmail.com
Sat Aug 19 16:11:38 PDT 2006


Thomas Kuehne wrote:
> Static arrays are special :X
>
> Try
> # uint[] array = new uint[3];
> # array[0] = 0xC0DE;
> # array[1] = 0xBEEF;
> # array[2] = 0xF00D;
>
> And replace
> #
> # writefln(a);
> #
>
> with something like
> #
> # writefln("%X", *a);
> #

That only works for dynamically created arrays, but thanks anyway!
So there's really no way to do something like that with a static array?



More information about the Digitalmars-d-learn mailing list