Defining a static array with values in a range
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jan 22 09:48:42 PST 2015
tcak:
> So, at the end of the day (I left working on my Matcher class
> in the morning waiting an answer for this question), there is
> nothing to convert ['a'..'d', '0'..'3'] to ['a', 'b', 'c', 'd',
> '0', '1', '2', '3'] at compile time automatically.
Right. The 'a'..'d' is not first class, and you can't invent new
syntax.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list