www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4229] New: cast spec

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

           Summary: cast spec
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody puremagic.com
        ReportedBy: ellery-newcomer utulsa.edu



21:39:25 PDT ---
for D2, the spec is missing description of the following:

auto i = cast(const) 1;
auto i = cast(const shared) 1;
{etc}
auto i = cast() 1;

Love that last one.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 23 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4229




14:20:49 PST ---
surprised to find out that the last one actually does something:

const(uint) i;
const(uint[]) j;

assert(is(typeof( cast() i) == uint));
assert(is(typeof( cast() j) == const(uint)[]));

and here I was assuming it was a typo.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 24 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4229


Walter Bright <bugzilla digitalmars.com> changed:

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



17:50:43 PST ---
This is already fixed.

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