Bug 4229 – cast spec

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-05-23T21:39:00Z
Last change time
2015-06-09T05:15:15Z
Keywords
spec
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2010-05-23T21:39:25Z
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.
Comment #1 by ellery-newcomer — 2010-11-24T14:20:49Z
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.
Comment #2 by bugzilla — 2012-01-23T17:50:43Z
This is already fixed.