Questions about the slice operator

Jacob Carlborg doob at me.com
Wed Apr 4 05:21:01 PDT 2012


On 2012-04-04 14:16, Simen Kjærås wrote:

> And what do we do with 3..$?

Hmm, that's a good point. The best I can think of for now is to 
translate that to:

range(3, size_t.max)

Or something like:

struct range
{
     size_t start;
     size_t end;
     bool dollar; // better name is needed
}

range(3, 0, true)

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list