Other integral literals?

bearophile bearophileHUGS at lycos.com
Sun Mar 20 08:40:59 PDT 2011


Do you ever desire literals for byte, ubyte, short and ushort integrals (beside the currently present for int, uint, long, ulong that are 10, 10U, 10L, 10UL)?

Because of the more strict typing of templates in some situations I have had to write things like:

cast(ubyte)100

Possible literals for byte, ubyte, short and ushort integrals (the byte ones aren't great):
10Y
10UY
10S
10US

Are similar suffixes useful enough to have?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list