Const Ideas

Janice Caron caron800 at googlemail.com
Sun Dec 2 21:08:19 PST 2007


On 12/3/07, Craig Black <craigblack2 at cox.net> wrote:
> Sorry if this is a stupid question, but if
>
> const XY
>
> means that both X and Y are const, then

But it doesn't. I don't understand what you're saying. A statement
like "const XY x;" would mean that x is fully const and of type XY. A
statement like "const X Y x;" just won't compile.



More information about the Digitalmars-d mailing list