Re: opCaret to complement opDollar when specifying slices

2012-06-06 Thread Gor Gyolchanyan
On Wed, Jun 6, 2012 at 3:53 PM, Steven Schveighoffer wrote: > On Mon, 04 Jun 2012 17:23:57 -0400, Xinok wrote: > >> On Saturday, 2 June 2012 at 11:49:17 UTC, Dario Schiavon wrote: >>> >>> Hi, >>> >>> I just read some old threads about opDollar and the wish to have it work >>> for non zero-based a

Re: opCaret to complement opDollar when specifying slices

2012-06-06 Thread Steven Schveighoffer
On Mon, 04 Jun 2012 17:23:57 -0400, Xinok wrote: On Saturday, 2 June 2012 at 11:49:17 UTC, Dario Schiavon wrote: Hi, I just read some old threads about opDollar and the wish to have it work for non zero-based arrays, arrays with gaps, associative arrays with non-numerical indices, and so

Re: opCaret to complement opDollar when specifying slices

2012-06-04 Thread Xinok
On Saturday, 2 June 2012 at 11:49:17 UTC, Dario Schiavon wrote: Hi, I just read some old threads about opDollar and the wish to have it work for non zero-based arrays, arrays with gaps, associative arrays with non-numerical indices, and so on. It was suggested to define opDollar as the end of

Re: opCaret to complement opDollar when specifying slices

2012-06-04 Thread Steven Schveighoffer
On Mon, 04 Jun 2012 16:32:55 -0400, Roman D. Boiko wrote: On Monday, 4 June 2012 at 20:26:52 UTC, Steven Schveighoffer wrote: On Mon, 04 Jun 2012 16:13:49 -0400, Mehrdad Can you use "null"? Hm... now that null has its own type, I likely could. I suppose that would map properly to 0. -Stev

Re: opCaret to complement opDollar when specifying slices

2012-06-04 Thread Roman D. Boiko
On Monday, 4 June 2012 at 20:26:52 UTC, Steven Schveighoffer wrote: On Mon, 04 Jun 2012 16:13:49 -0400, Mehrdad Can you use "null"? Hm... now that null has its own type, I likely could. I suppose that would map properly to 0. -Steve But if the key is non-nullable this might be confusing, or

Re: opCaret to complement opDollar when specifying slices

2012-06-04 Thread Steven Schveighoffer
On Mon, 04 Jun 2012 16:13:49 -0400, Mehrdad wrote: On Monday, 4 June 2012 at 19:55:49 UTC, Steven Schveighoffer wrote: On Sat, 02 Jun 2012 07:49:16 -0400, Dario Schiavon wrote: Hi, I just read some old threads about opDollar and the wish to have it work for non zero-based arrays, array

Re: opCaret to complement opDollar when specifying slices

2012-06-04 Thread Mehrdad
On Monday, 4 June 2012 at 19:55:49 UTC, Steven Schveighoffer wrote: On Sat, 02 Jun 2012 07:49:16 -0400, Dario Schiavon wrote: Hi, I just read some old threads about opDollar and the wish to have it work for non zero-based arrays, arrays with gaps, associative arrays with non-numerical indi

Re: opCaret to complement opDollar when specifying slices

2012-06-04 Thread Steven Schveighoffer
On Sat, 02 Jun 2012 07:49:16 -0400, Dario Schiavon wrote: Hi, I just read some old threads about opDollar and the wish to have it work for non zero-based arrays, arrays with gaps, associative arrays with non-numerical indices, and so on. It was suggested to define opDollar as the end o

opCaret to complement opDollar when specifying slices

2012-06-02 Thread Dario Schiavon
Hi, I just read some old threads about opDollar and the wish to have it work for non zero-based arrays, arrays with gaps, associative arrays with non-numerical indices, and so on. It was suggested to define opDollar as the end of the array rather than the length (and perhaps rename opDollar t