Is This a Solution For the Const/Rebindable Issue?
Mehrdad
wfunction at hotmail.com
Sun Jun 12 23:00:41 PDT 2011
== Quote from Steven Schveighoffer (schveiguy at yahoo.com)'s article
> What is the type of s.o? Hint, it can't be final, because final isn't part of the type.
> What is the type of &s.o?
> If the type of s.o is T (let's say) and the type of &s.o is not T*, then I think we have a problem.
> I just think it doesn't work. Maybe you can figure out a way it can, but I don't think it can be done
without severe confusing semantics.
> -Steve
Type of s.o: const(Object), like before. Can be reassigned.
Type of &s.o: Pointer to a const(Object)... yeah I think I finally see. x_____x
Gosh, that sucks... thanks for the explanation, I appreciate it. :) I'll see if I can figure out a way
(though I doubt I can, lol)...
More information about the Digitalmars-d
mailing list