VLERange: a range in between BidirectionalRange and RandomAccessRange

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jan 17 12:49:26 PST 2011


On 1/17/11 2:29 PM, Michel Fortin wrote:
> The problem I see currently is that you rely on dchar being the element
> type. That should be an implementation detail, not something client code
> can see or rely on.

But at some point you must be able to talk about individual characters 
in a text. It can't be something that client code doesn't see!!!

SuperDuperText txt;
auto c = giveMeTheFirstCharacter(txt);

What is the type of c? That is visible to the client!


Andrei


More information about the Digitalmars-d mailing list