readonly storage class
H. S. Teoh
hsteoh at quickfur.ath.cx
Sun Apr 8 10:33:35 PDT 2012
On Sun, Apr 08, 2012 at 06:09:48PM +0200, Benjamin Thaut wrote:
[...]
> Thanks, then this is a misunderstanding on my side, and this topic is
> irrelevant. But what about calling const methods on immutable objects?
[...]
Basically, the way const/immutable works is:
const
/ \
unqualified immutable
Both unqualified and immutable implicitly convert to const, but not the
other way around (except in certain special cases, like copying ints).
T
--
People walk. Computers run.
More information about the Digitalmars-d
mailing list