[phobos] Pureness of enforce()
Steve Schveighoffer
schveiguy at yahoo.com
Tue Nov 9 08:34:45 PST 2010
----- Original Message ----
> From: Steve Schveighoffer <schveiguy at yahoo.com>
> A const, immutable, or shared member function applies the const, immutable, or
>
> shared part to the hidden context pointer. So I believe the modifier should
>be
>
> hidden as well. What we do need at some point is for you to not be able to
> create such a delegate.
Didn't finish that thought. I meant to write:
What we do need at some point is for you to not be able to create such a
delegate unless the type system allows it. That is, if you have a const object,
you shouldn't be able to get a delegate to an immutable member function.
-Steve
More information about the phobos
mailing list