www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D1 compile-time check for symbol/function?

reply "Nick Sabalausky" <a a.a> writes:
Does D1 have a way to check at compile-time if a particular symbol 
(specifically a function) is defined? 
Apr 22 2009
parent Jarrett Billingsley <jarrett.billingsley gmail.com> writes:
On Wed, Apr 22, 2009 at 11:38 PM, Nick Sabalausky <a a.a> wrote:
 Does D1 have a way to check at compile-time if a particular symbol
 (specifically a function) is defined?
You can use is(typeof(symbol)) to check if a symbol is defined, and you can use other forms of is() to specifically determine that it is a function.
Apr 22 2009