www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4870] New: Suffix for intptr_t literals

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4870

           Summary: Suffix for intptr_t literals
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: dfj1esp02 sneakemail.com



21:03:03 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 14 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4870


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |WONTFIX



23:02:36 PST ---
You can create a template to do custom literals, like for octal:

   octal!1234

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 23 2012