Logging Function Parameters

Aliak something at something.com
Mon Mar 19 08:12:16 UTC 2018


On Sunday, 18 March 2018 at 23:17:58 UTC, Dennis wrote:
> 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.

Ah! Thanks for the clarification.




More information about the Digitalmars-d-learn mailing list