Representation length of integral types

Kai Nacke via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 3 23:17:48 PDT 2015


On Tuesday, 4 August 2015 at 04:10:33 UTC, tcak wrote:
> max_hex_length = 2
> max_dec_length = 3
> max_bin_length = 8

I think that there is no need to add such properties. They 
clearly belong into the application domain. min and max values 
are different because they depend on the internal representation 
of the number.

There should be no problem to use CTFE to calculate these values 
at compile time.

Regards,
Kai


More information about the Digitalmars-d mailing list