How to break const
Christophe Travert
travert at phare.normalesup.org
Wed Jun 20 02:28:14 PDT 2012
deadalnix , dans le message (digitalmars.D:170272), a écrit :
> Le 20/06/2012 10:18, Christophe Travert a écrit :
> What is the conclusion here ?
I think it is the same as yours.
My conclusion is that delegate's signature should be the same has
methods's signature, and have the same meaning. That makes the langage
consistent, and makes sure not to bring any new hole in the langage.
In detail, they should be able to have a const or immutable attribute
for their frame pointer, just like methods can be const or immutable
with regard to the this argument, and a pure attribute that has the same
meaning as methods pure attribute: no global variable access (and no
impure function calls), but possibility to access the frame pointer.
--
Christophe
More information about the Digitalmars-d
mailing list