Congratulations to the D Team!
Walter Bright
newshound2 at digitalmars.com
Tue Jul 10 19:22:42 PDT 2012
On 7/10/2012 6:53 PM, Andrei Alexandrescu wrote:
> On 7/10/12 9:14 PM, Walter Bright wrote:
>> Anyhow, the point of @trusted is to notify the maintainer that "here be
>> dragons".
>
> I think that's not representing @trusted quite accurately. There's no dragon
> there. @trusted means "the code is correct but not mechanically checkable".
> Casting away const is NOT correct.
You're right in that it would break immutable args passed.
PIMPL is a better option.
More information about the Digitalmars-d
mailing list