http://d.puremagic.com/issues/show_bug.cgi?id=5995


timon.g...@gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.g...@gmx.ch


--- Comment #5 from timon.g...@gmx.ch 2011-05-16 11:01:47 PDT ---
(In reply to comment #3)
> Hm... I think in general it is a design flaw to allow int to implicitly cast 
> to
> dchar.
> 
> I think that is the source of the problem.
> 
> Going from (d|w)char to the appropriate width integer should be fine, but 
> going
> the other way seems prone to error.
> 
> Note that in lifetime.d, the assert(0) should not lead to a segmentation 
> fault.

assert(0) emits asm{hlt;} when compiled in release mode. Encountering hlt _is_
a segmentation fault, so this is just fine.

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

Reply via email to