On 2015-07-16 10:26, "Marc =?UTF-8?B?U2Now7x0eiI=?= <schue...@gmx.net>" wrote:

Do mixin templates work on module level? They can even have an identifier.


Yes. But a mixin template seems only be able to contain declarations. How did you plan to use it?

Unfortunately there are syntactical ambiguities:

     step("foo bar") {
     }
     .foo();

Is that a call chain, or two statements, with the second one calling a
function in the root scope? And I think there are other similar cases...

Hmm, right. I have simple implementation of this. With you're example I get this error message:

function main.foo () is not callable using argument types (void function() @safe)

--
/Jacob Carlborg

Reply via email to