Detect if variable defined

Joseph JE342 at gmail.com
Fri Sep 29 18:03:52 UTC 2017


static if ()
{
  enum x;
}

static if (isDefined!x)
{
}

What's the correct way to check if a variable has been defined? 
(note x may or may not be defined above. I need to know if it is)


More information about the Digitalmars-d-learn mailing list