Annotation of functions

Patrick Schluter Patrick.Schluter at bbox.fr
Wed Feb 21 19:03:53 UTC 2018


On Wednesday, 21 February 2018 at 01:53:42 UTC, psychoticRabbit 
wrote:
> On Tuesday, 20 February 2018 at 13:40:16 UTC, bauss wrote:
>>
>> I should probably have put an example usage to show how it's 
>> used:
>> ....
>
> This makes we want to go back and program in C again ;-)
>
> (but thanks for taking the time to demo/explain)

mixin is equivalent to preprocessor macros but with the benefit 
that you can build the string/macro using construct of the 
language and informations the compiler knows. The mixin itself 
corresponds then to the macro expansion.


More information about the Digitalmars-d mailing list