Typeof woes

Dicebot public at dicebot.lv
Wed Aug 21 05:12:00 PDT 2013


Yes, "is" expression suppresses errors and simply returns "false" 
(as error is not valid type). It is used in a common D idiom - 
"is(typeof(<expression>))" to check if certain expression is 
valid and compiles in current scope.


More information about the Digitalmars-d-learn mailing list