Last - but not least! - two DConf talks
Jacob Carlborg via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Thu Jul 16 01:59:48 PDT 2015
On 2015-07-16 10:26, "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm at 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
More information about the Digitalmars-d-announce
mailing list