Code



Compilation output:

static class MagicClass : BaseClass { T[0] member0; T[1] member1; void printAttempts() { writefln("member 0 => %s", member0); writefln("member 1 => %s", member1); } this() { member0 = new typeof(member0)(); member1 = new typeof(member1)(); } }


Application output:

member 0 => f13.ChildT!("WorstChild").WorstChild member 1 => f13.ChildT!("MiddleChild").MiddleChild

Paste info


Author: Guest
Views: 1463
Private: no
Expires: Never
Uploaded: 16.10.13 20:45
Votes: 0

Compilation


Compiler: DMD 2.076.1 ( 2.076.1 )
Pointer size: m64

Actions