cpp_binder, a not-yet-useful tool for generating C++ bindings

Kagamin via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Sep 23 01:30:45 PDT 2015


On Tuesday, 22 September 2015 at 16:24:33 UTC, Ola Fosheim 
Grøstad wrote:
> On Tuesday, 22 September 2015 at 15:53:22 UTC, Kagamin wrote:
>> Of course you didn't. In C you can mutate const object without 
>> cast. But it's not an issue because it's not what is usually 
>> done and usually const works as expected.
>
> No. Const objects are read only. Writing to read only objects 
> would be undefined behaviour.

That's why there's no choice other than trust developer to do the 
expected thing.


More information about the Digitalmars-d-announce mailing list