Annotation of functions

psychoticRabbit meagain at meagain.com
Tue Feb 20 13:04:42 UTC 2018


On Tuesday, 20 February 2018 at 12:55:31 UTC, psychoticRabbit 
wrote:
> fn string creater() pure {
>  	return "void func() {}";
> }
>
> so now I'm just looking for lines that begin with fn. the mixin 
> doesn't matter.

oh... I think I might have misunderstood your point ... due to 
not understanding CTFE. Never used it before - 25+ years 
programming ;-)

what does this code even do? i don't understand it. why does it 
even compile?


string creator() pure {
	return "void func() {}";
}

mixin(creator());




More information about the Digitalmars-d mailing list