The Status of Const
Michel Fortin
michel.fortin at michelf.com
Mon Aug 16 08:23:24 PDT 2010
On 2010-08-16 11:17:32 -0400, "Steven Schveighoffer"
<schveiguy at yahoo.com> said:
> struct Array(V)
> {
> uint length;
> V *v;
> }
>
> How can we turn Array!V into Array!(const(V)) implicitly...
Shouldn't this work?
struct Array(V) {
uint length;
V *v;
Array!(const V) _const() @property { ... }
alias _const this;
}
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list