Code



Compilation output:

static class MagicClass : BaseClass { T members; void printAttempts() { foreach(i, TI; T) writefln("member " ~ to!string(i) ~ " => %s", members[i]); } }


Application output:

member 0 => null member 1 => null

Paste info


Author: Guest
Views: 475
Private: no
Expires: Never
Uploaded: 15.10.13 15:13
Votes: 0

Compilation


Compiler: DMD 2.076.1 ( 2.076.1 )
Pointer size: m64

Actions