legal identifier check

BCS none at anon.com
Sun May 31 08:34:53 PDT 2009


Hello Saaa,

>> static if(is(typeof({ /* code to be checked for validity goes here */
>> }))) ...
>> 
> How does that piece of code work anyways :D


that checks to see if the {...} is a valid delegate literal by using is() 
to see if semantic checks fail.




More information about the Digitalmars-d-learn mailing list