Object.factory
BCS
ao at pathlink.com
Tue Sep 25 22:55:16 PDT 2007
Reply to DanO,
> MyDict!(int).classinfo.name == "MyDict!(int).MyDict";
> // Why the extra .MyDict appended to the end??
>
template are scopes. Thus this
class Foo(t)
{
}
is short hand for this
template Foo(t)
{
class Foo
{
}
}
and D lets you implicitly reference the only member of a template if it has
the same name as the template it's self. However the correct name is the
whole thing
More information about the Digitalmars-d
mailing list