type suffix for character literal

Adam D. Ruppe destructionator at gmail.com
Tue Dec 8 05:04:22 UTC 2020


On Monday, 7 December 2020 at 22:26:52 UTC, Ben Jones wrote:
> Are there suffices (suffixes?) for character literals?

nope.

> Is there a more succinct of writing "the literal 'x' as a 
> dchar" than dchar('x')?

You should rarely need to since there's implicit casting. but I 
think that is the best way if you do need to.


More information about the Digitalmars-d-learn mailing list