Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module ab;
- import std.stdio;
- import std.c.stdio;
- struct Cdefg {};
- void main() {
- writeln(typeid(Cdefg).toString);
- writeln(typeid(Cdefg).toString.length);
- writeln((typeid(Cdefg).toString.ptr - 4)[0 .. 8]);
- }
- /* Output:
- defg
- 8
- ab.Cdefg
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement