The case of &T.init

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Tue May 19 12:00:42 PDT 2015


> Likewise it would be nice to get the a class's .init[] slice
> at compile-time.

Scratch that part, the compile optimizes typeid(T).init.ptr
down to a single load from a fixed address. That's pretty
close to knowing and using it statically.

-- 
Marco



More information about the Digitalmars-d mailing list