Re: overload of array operations

2011-10-17 Thread bearophile
Timon Gehr: > I agree. It is odd that we have opSliceUnary but not opSliceBinary. If you think something useful is missing, then file a Bugzilla enhancement request. Bye, bearophile

Re: overload of array operations

2011-10-17 Thread Timon Gehr
On 10/15/2011 01:12 AM, Jay Norwood wrote: Jonathan M Davis Wrote: On Friday, October 14, 2011 15:29:17 Jay Norwood wrote: Jonathan M Davis Wrote: On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: Is it possible to overload array operations Please be more specific. Are you asking whe

Re: overload of array operations

2011-10-17 Thread Timon Gehr
On 10/14/2011 09:43 PM, Jonathan M Davis wrote: On Friday, October 14, 2011 15:29:17 Jay Norwood wrote: Jonathan M Davis Wrote: On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: Is it possible to overload array operations Please be more specific. Are you asking whether a struct or clas

Re: overload of array operations

2011-10-14 Thread Jonathan M Davis
On Friday, October 14, 2011 16:12 Jay Norwood wrote: > Jonathan M Davis Wrote: > > On Friday, October 14, 2011 15:29:17 Jay Norwood wrote: > > > Jonathan M Davis Wrote: > > > > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > > > > Is it possible to overload array operations > > > > > >

Re: overload of array operations

2011-10-14 Thread Jay Norwood
Jonathan M Davis Wrote: > On Friday, October 14, 2011 15:29:17 Jay Norwood wrote: > > Jonathan M Davis Wrote: > > > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > > > Is it possible to overload array operations > > > > > > Please be more specific. Are you asking whether a struct or c

Re: overload of array operations

2011-10-14 Thread Jonathan M Davis
On Friday, October 14, 2011 15:29:17 Jay Norwood wrote: > Jonathan M Davis Wrote: > > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > > Is it possible to overload array operations > > > > Please be more specific. Are you asking whether a struct or class can > > overload the indexing an

Re: overload of array operations

2011-10-14 Thread Jay Norwood
Jonathan M Davis Wrote: > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > Is it possible to overload array operations > > Please be more specific. Are you asking whether a struct or class can > overload > the indexing and slicing operators? If so, the answer is yes. > > http://d-pr

Re: overload of array operations

2011-10-14 Thread Jay Norwood
Jonathan M Davis Wrote: > On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > > Is it possible to overload array operations > > Please be more specific. Are you asking whether a struct or class can > overload > the indexing and slicing operators? If so, the answer is yes. > > http://d-pr

Re: overload of array operations

2011-10-14 Thread Jonathan M Davis
On Friday, October 14, 2011 11:30:25 Jay Norwood wrote: > Is it possible to overload array operations Please be more specific. Are you asking whether a struct or class can overload the indexing and slicing operators? If so, the answer is yes. http://d-programming-language.org/operatoroverloading