Should the "front" range primitive be "const" ?

Drone1h drone1h at gmail.com
Sat Mar 24 00:46:46 UTC 2018


On Monday, 19 March 2018 at 00:50:06 UTC, Jonathan M Davis wrote:
> On Monday, March 19, 2018 00:14:11 Drone1h via 
> Digitalmars-d-learn wrote:
>> I am not sure whether I can make it work with "inout" instead 
>> of "const". Perhaps I am missing something.
> ...
>> May I ask that you confirm that this is what you suggested ? 
>> Thank you.
>
> Marking a empty or front with inout has most of the problems 
> that const has. The difference is that [...]

Thank you again for your kind replies. I will carefully read 
during the following days.


More information about the Digitalmars-d-learn mailing list