Thread overview
[Issue 4229] New: cast spec
May 24, 2010
Ellery Newcomer
Nov 24, 2010
Ellery Newcomer
Jan 24, 2012
Walter Bright
May 24, 2010
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


--- Comment #0 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2010-05-23 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: -------
November 24, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4229



--- Comment #1 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2010-11-24 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: -------
January 24, 2012
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


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2012-01-23 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: -------