xxxxxxxxxx
struct Foo
{
TypeInfo typeCache;
TypeInfo getTypeCache()
{
alias NotThePoint = ubyte;
if (typeCache is null)
typeCache = typeid(NotThePoint);
return typeCache;
}
TypeInfo type() const
{
alias NothrowType = TypeInfo delegate() const;
return (cast(NothrowType) &getTypeCache)();
}
}
void main(){}