Bug 4870 – Suffix for intptr_t literals

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-09-14T21:03:00Z
Last change time
2015-06-09T05:13:44Z
Keywords
spec
Assigned to
nobody
Creator
dfj1esp02

Comments

Comment #0 by dfj1esp02 — 2010-09-14T21:03:03Z
It's a common practice to use intptr_t-typed negative values. It would be handy to have a suffix for such literals in order to not confuse anyone with implicit sign-extending integer conversions and not use a cast at the same time.
Comment #1 by bugzilla — 2012-01-23T23:02:36Z
You can create a template to do custom literals, like for octal: octal!1234