How to break const

Timon Gehr timon.gehr at gmx.ch
Wed Jun 20 07:34:40 PDT 2012


On 06/20/2012 02:32 PM, deadalnix wrote:
> Le 20/06/2012 11:28, Christophe Travert a écrit :
>> 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.
>>
>
> This is definitively my point too.

+1.


More information about the Digitalmars-d mailing list