C++ const expression are not that const after all

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 28 17:49:47 PDT 2015


On 4/28/2015 4:13 PM, Dicebot wrote:
> On Tuesday, 28 April 2015 at 02:24:02 UTC, deadalnix wrote:
>> Interesting read, and the conclusion beg the question: why using a sublanguage
>> for const expression, if it do not provides the guarantee it is supposed to.
>>
>> http://b.atch.se/posts/non-constant-constant-expressions/
>
> If someone discovers similar hole in D - please, I beg you, don't try building a
> library on top of it. Report a bug instead :)

Yes, many times, yes. Report it to bugzilla as a bug. Any code relying on buggy 
behavior listed in bugzilla is likely to get little sympathy from the D 
community when it breaks due to a bugfix.


More information about the Digitalmars-d mailing list