D1 compile-time check for symbol/function?

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Apr 22 21:02:07 PDT 2009


On Wed, Apr 22, 2009 at 11:38 PM, Nick Sabalausky <a at 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.


More information about the Digitalmars-d-learn mailing list