Program size, linking matter, and static this()
Michal Minich
michal.minich at gmail.com
Wed Dec 21 07:46:37 PST 2011
On 21. 12. 2011 14:22, so wrote:
> Supporting module nesting in single file wouldn't hurt, would it?
>
> module main;
> module nested
> {
> }
Kind of...
template MyNamespaceImpl ()
{
int i;
}
alias MyNamespaceImpl!() MyNamespace;
void main ()
{
MyNamespace.i = 1;
with (MyNamespace)
{
i = 2;
}
writeln(MyNamespace.i);
readln();
}
More information about the Digitalmars-d
mailing list