Idea to ease tail-const class reference woes
Steven Schveighoffer
schveiguy at yahoo.com
Fri Mar 21 16:08:55 PDT 2008
"Janice Caron" wrote
> Oops. Typo. Let's try that again...
>
> Sounds more work than
>
> import std.typecons;
> Rebindable!(C) myClass = new C;
>
> which is planned for the future. (See D2.012 change log)
One further question on this...
If I have:
class C
{
void foo() {};
}
Rebindable!(const(C)) myC = new C;
myC.foo();
Is the plan for this to compile (I know it doesn't today)? If not, then this
is not an acceptable solution.
-Steve
More information about the Digitalmars-d
mailing list