mixin template FAIL

Ellery Newcomer ellery-newcomer at utulsa.edu
Thu Feb 23 16:33:58 PST 2012


>
> Thanks for your reply. You're right about the statement. But I still
> think something's wrong. For example, even this program produces the
> errors:
>
> import std.stdio;
>
> mixin template helpMe()
> {
> writeln("Satisfying!");
> }
>

does it do that if you replace the statement with a declaration?

like this:

mixin template helpMe()
{
   int durrr = (writeln("Satisfying!"), 1);
}


More information about the Digitalmars-d-learn mailing list