static foreach and inline if

JS js.mdnq at gmail.com
Sat Jul 27 16:56:00 PDT 2013


On Saturday, 27 July 2013 at 19:06:48 UTC, anonymous wrote:
> On Saturday, 27 July 2013 at 17:14:35 UTC, JS wrote:
>> The tIf doesn't work properly but I'm not sure why
> [...]
>> template tIf(bool cond, alias T)
>
> Lower case 'f' here, ...
>
>> {
>> 	static if (cond) alias tIF = T; else alias tIF = tuple!();
>
> ... upper case 'F's here.

Thanks... I'm glad someone can see the tree's from the forest. (I 
originally was going to use all caps but changed it at the last 
minute.




More information about the Digitalmars-d-learn mailing list