Defining a static array with values in a range

zeljkog via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 22 11:00:43 PST 2015


On 22.01.15 19:26, Meta wrote:
> On Thursday, 22 January 2015 at 18:23:00 UTC, Meta wrote:
> Whoops, I forgot to make it a template to force CTFE.
>

You can force CTFE assigning to manifest constant.

enum t = charRange!...


More information about the Digitalmars-d-learn mailing list