Proposal for fixing dchar ranges
Steven Schveighoffer
schveiguy at yahoo.com
Tue Mar 11 07:04:38 PDT 2014
On Tue, 11 Mar 2014 09:11:22 -0400, Dicebot <public at dicebot.lv> wrote:
> On Monday, 10 March 2014 at 17:54:49 UTC, Steven Schveighoffer wrote:
>> On Mon, 10 Mar 2014 13:06:08 -0400, Brad Anderson <eco at gnuk.net> wrote:
>>
>>> It seems like this would be an even bigger breaking change than
>>> Walter's proposal though (right or wrong, slicing strings is very
>>> common).
>>
>> You're the second person to mention that, I was not planning on
>> disabling string slicing. Just random access to individual chars, and
>> probably .length.
>>
>
> It is unacceptable to have slicing which is not O(1) for basic types.
It would be O(1), work just like it does today.
-Steve
More information about the Digitalmars-d
mailing list