Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-04 Thread bearophile
Don Clugston: You mean like the old opStar() (which meant deref), or like opBinary("+") ? I meant the even older ones :-) Bye, barophile

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-04 Thread Don Clugston
On 04/06/12 15:38, bearophile wrote: David Nadlinger: Actually, I'd say its the other way round – opDollar rather corresponds to opDoubleEqualSign, as it simply describes the character used. I agree. It's the opposite of the semantic names of the original operator overloading set. You mean

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-04 Thread bearophile
David Nadlinger: Actually, I'd say its the other way round – opDollar rather corresponds to opDoubleEqualSign, as it simply describes the character used. I agree. It's the opposite of the semantic names of the original operator overloading set. Bye, bearophile

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-04 Thread John Chapman
On Monday, 4 June 2012 at 10:00:20 UTC, Dmitry Olshansky wrote: On 04.06.2012 13:57, Don Clugston wrote: On 03/06/12 19:31, tn wrote: On Friday, 1 June 2012 at 01:57:36 UTC, kenji hara wrote: I'd like to propose a new language feature to D community. ... This patch is an additional enhancement

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-04 Thread David Nadlinger
On Monday, 4 June 2012 at 10:07:38 UTC, Jonathan M Davis wrote: TDPL already lists opDollar, and it's overloading the $ operator, so I would dispute that a better name _could_ exist. That would be like saying that opEquals would be better if it were renamed to opDoubleEqualSign. Actually, I'd

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-04 Thread Jonathan M Davis
On Monday, June 04, 2012 14:00:18 Dmitry Olshansky wrote: > On 04.06.2012 13:57, Don Clugston wrote: > > On 03/06/12 19:31, tn wrote: > >> On Friday, 1 June 2012 at 01:57:36 UTC, kenji hara wrote: > >>> I'd like to propose a new language feature to D community. > >>> ... > >>> This patch is an addi

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-04 Thread Dmitry Olshansky
On 04.06.2012 13:57, Don Clugston wrote: On 03/06/12 19:31, tn wrote: On Friday, 1 June 2012 at 01:57:36 UTC, kenji hara wrote: I'd like to propose a new language feature to D community. ... This patch is an additional enhancement of opDollar (issue 3474 and #442). Sounds awesome. However, t

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-04 Thread Don Clugston
On 03/06/12 19:31, tn wrote: On Friday, 1 June 2012 at 01:57:36 UTC, kenji hara wrote: I'd like to propose a new language feature to D community. ... This patch is an additional enhancement of opDollar (issue 3474 and #442). Sounds awesome. However, the name opDollar should be changed to some

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-03 Thread tn
On Friday, 1 June 2012 at 01:57:36 UTC, kenji hara wrote: I'd like to propose a new language feature to D community. ... This patch is an additional enhancement of opDollar (issue 3474 and #442). Sounds awesome. However, the name opDollar should be changed to something like opSize, opLength,

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-01 Thread Guillaume Chatelet
On 06/01/12 03:57, kenji hara wrote: > I'd like to propose a new language feature to D community. > > I've opened a enhancement issue half a year ago. > > Issue 6798 - Integrate overloadings for multidimentional indexing and > slicing > http://d.puremagic.com/issues/show_bug.cgi?id=6798 > >

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-01 Thread bearophile
kenji hara: I'd like to propose a new language feature to D community. I think this was discussed and generally appreciated. It seems an improvement. Thank you Kenji. Bye, bearophile

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-01 Thread filgood
This would be very cool indeed! +1 from me. On 01/06/2012 02:57, kenji hara wrote: I'd like to propose a new language feature to D community. I've opened a enhancement issue half a year ago. Issue 6798 - Integrate overloadings for multidimentional indexing and slicing http://d.puremagic

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-05-31 Thread Gor Gyolchanyan
This is awesome! I would think, that making ranges like x..y a first-class object would solve all problems. In that case opSlice would return the slice, rather, then use it internally. On Fri, Jun 1, 2012 at 5:57 AM, kenji hara wrote: > I'd like to propose a new language feature to D community.

[Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-05-31 Thread kenji hara
I'd like to propose a new language feature to D community. I've opened a enhancement issue half a year ago. Issue 6798 - Integrate overloadings for multidimentional indexing and slicing http://d.puremagic.com/issues/show_bug.cgi?id=6798 And, a pull request for implementing it is now availabl