Defining a static array with values in a range
tcak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jan 21 21:56:39 PST 2015
I want to define alphanumeric characters in an easy way.
Something like that:
char[] arr = ['a'..'z', 'A'..'Z', '0'..'9'];
Though above example doesn't work. Is there any easy way to do
this?
I am trying to do something like EBNF definitions. So, I do not
want to use loops, or define every single thing one by one by
hand.
More information about the Digitalmars-d-learn
mailing list