Const sucks

Janice Caron caron800 at googlemail.com
Mon Sep 10 12:59:09 PDT 2007


You might want to allow

const(invariant(int)*)* p;

p is a mutable pointer to a const pointer to an invariant int.

Since invariant is "stronger" than const, you want to be able to do
const(invariant(...)), but not invariant(const(...))



More information about the Digitalmars-d mailing list