Comma operator = broken design
Regan Heath
regan at netmail.co.nz
Mon Dec 12 02:18:06 PST 2011
On Fri, 09 Dec 2011 15:39:09 -0000, Timon Gehr <timon.gehr at gmx.ch> wrote:
> On 12/09/2011 04:37 PM, Regan Heath wrote:
>> On Fri, 09 Dec 2011 14:54:16 -0000, Timon Gehr <timon.gehr at gmx.ch>
>> wrote:
>>> What you might be missing is that assert(false) is not compiled out in
>>> release mode. It emits a 'hlt' instruction which kills your program.
>>> However, your assert(c <= 0x10FFFF); will be removed in release mode.
>>
>> I was indeed missing that. I couldn't find anything about it on the
>> website. :)
>>
>> R
>>
>
> http://d-programming-language.org/expression.html#AssertExpression
I found that :p .. but nothing about behaviour in release/debug/etc.
R
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list