Logging Function Parameters

Dennis dkorpel at gmail.com
Sun Mar 18 23:17:58 UTC 2018


On Sunday, 18 March 2018 at 22:57:15 UTC, aliak wrote:
>     // But you get a:
>     // Error: Using the result of a comma expression is not 
> allowed
>     // writeln(mixin(arguments!f));

You can't mix part of a function call in: "Mixed in text must 
form complete declarations, statements, or expressions." 
(https://dlang.org/articles/mixin.html)

In this case, it evaluates to a comma expression, which is 
deprecated. If you put the "writeln();" inside the mixin string 
it should form a complete statement and compile.




More information about the Digitalmars-d-learn mailing list