How to get access to Voldemort / private thingies
Johan Engelen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jun 18 01:55:40 PDT 2016
Someone figured out how to do it and put it in std.traits! ;-)
Example:
```
import std.stdio;
import core.thread;
import std.traits;
void main()
{
Fields!Thread[11] a;
writeln(typeid(a));
}
```
This prints "core.thread.Thread.Context" , which is a private
struct type of core.thread.Thread.
Success! :-)
-Johan
More information about the Digitalmars-d-learn
mailing list