const main args?

Timon Gehr timon.gehr at gmx.ch
Fri Aug 12 16:14:32 PDT 2011


On 08/13/2011 01:04 AM, Adam Ruppe wrote:
> Jonathan M Davis wrote:
>> const(T)[] maybe,
>> but as soon as you use in, you can't use any range functions.
>
> That is, to me, the biggest problem with range functions and
> something that should be fixed.
>
> There's no defense for it aside from being the status quo. It's just a
> shortcoming of the current implementation, not a principled limitation.

+1. Maybe the impact on Phobos of fixing this can be kept small by a 
well thought-out language change.


More information about the Digitalmars-d-learn mailing list