Re: Method invocation -- why it's not working?

2012-03-10 Thread Andrej Mitrovic
On 3/9/12, Timon Gehr timon.g...@gmx.ch wrote: On 03/09/2012 07:08 PM, Andrej Mitrovic wrote: Yeah I understood it as a general concept as well. Probably many people did. Why doesn't Andrei chime in? I think he does not read the D.learn newsgroup. Ah poo. This is like East Berlin in here.

Re: Method invocation -- why it's not working?

2012-03-09 Thread Jonathan M Davis
On Thursday, March 08, 2012 08:03:09 H. S. Teoh wrote: On Wed, Mar 07, 2012 at 11:50:57PM -0800, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:37:38 Comrad wrote: On Thursday, 8 March 2012 at 06:43:45 UTC, Jonathan M Davis wrote: [...] It's not correct. In TDPL it is clearly

Re: Method invocation -- why it's not working?

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 03:10:00AM -0800, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:03:09 H. S. Teoh wrote: [...] TDPL, p.156, 1st two paragraphs under 5.9.1 Pseudo Members and the @property Attribute: One syntactic problem is that function invocations so far have

Re: Method invocation -- why it's not working?

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 07:56:15 H. S. Teoh wrote: On Fri, Mar 09, 2012 at 03:10:00AM -0800, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:03:09 H. S. Teoh wrote: [...] TDPL, p.156, 1st two paragraphs under 5.9.1 Pseudo Members and the @property Attribute: One

Re: Method invocation -- why it's not working?

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 08:50:36AM -0800, Jonathan M Davis wrote: On Friday, March 09, 2012 07:56:15 H. S. Teoh wrote: On Fri, Mar 09, 2012 at 03:10:00AM -0800, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:03:09 H. S. Teoh wrote: [...] TDPL, p.156, 1st two paragraphs under

Re: Method invocation -- why it's not working?

2012-03-09 Thread Andrej Mitrovic
Yeah I understood it as a general concept as well. Probably many people did. Why doesn't Andrei chime in?

Re: Method invocation -- why it's not working?

2012-03-09 Thread Andrej Mitrovic
On 3/9/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Yeah I understood it as a general concept as well. Probably many people did. Why doesn't Andrei chime in? Btw, we all know how much Andrei loves generics so why the heck would he care about arrays so much to only give them special

Re: Method invocation -- why it's not working?

2012-03-09 Thread Timon Gehr
On 03/09/2012 07:08 PM, Andrej Mitrovic wrote: Yeah I understood it as a general concept as well. Probably many people did. Why doesn't Andrei chime in? I think he does not read the D.learn newsgroup.

Re: Method invocation -- why it's not working?

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 19:13:02 Andrej Mitrovic wrote: On 3/9/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Yeah I understood it as a general concept as well. Probably many people did. Why doesn't Andrei chime in? I don't think that Andrei even pays attention to D.learn.

Re: Method invocation -- why it's not working?

2012-03-09 Thread Comrad
On Thursday, 8 March 2012 at 08:19:02 UTC, Kapps wrote: On Thursday, 8 March 2012 at 07:53:02 UTC, Jonathan M Davis wrote: It would be nice, but I honestly don't understand the people who think that the lack of it is crippling. It's just one of those nice-to-have features. Most languages

Re: Method invocation -- why it's not working?

2012-03-08 Thread Kapps
On Thursday, 8 March 2012 at 07:53:02 UTC, Jonathan M Davis wrote: It would be nice, but I honestly don't understand the people who think that the lack of it is crippling. It's just one of those nice-to-have features. Most languages don't have anything of the sort. - Jonathan M Davis

Re: Method invocation -- why it's not working?

2012-03-08 Thread Jonathan M Davis
On Thursday, March 08, 2012 09:19:01 Kapps wrote: On Thursday, 8 March 2012 at 07:53:02 UTC, Jonathan M Davis wrote: It would be nice, but I honestly don't understand the people who think that the lack of it is crippling. It's just one of those nice-to-have features. Most languages

Re: Method invocation -- why it's not working?

2012-03-08 Thread H. S. Teoh
On Wed, Mar 07, 2012 at 11:50:57PM -0800, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:37:38 Comrad wrote: On Thursday, 8 March 2012 at 06:43:45 UTC, Jonathan M Davis wrote: [...] It's not correct. In TDPL it is clearly stated, that this is a general feature of the language.

Re: Method invocation -- why it's not working?

2012-03-07 Thread Simen Kjærås
On Thu, 08 Mar 2012 00:21:36 +0100, Comrad comrad.karlov...@googlemail.com wrote: 1 struct A 2 { 3 double[2] _x; 4 } 5 6 @property ref double y(ref A a) {return a._x[1];} 7 8 void main() 9 { 10 A a1; 11 a1.y=2.; 12 } dmd test.d gives me: Error: no

Re: Method invocation -- why it's not working?

2012-03-07 Thread Ali Çehreli
On 03/07/2012 03:21 PM, Comrad wrote: 1 struct A 2 { 3 double[2] _x; 4 } 5 6 @property ref double y(ref A a) {return a._x[1];} 7 8 void main() 9 { 10 A a1; 11 a1.y=2.; 12 } dmd test.d gives me: Error: no property 'y' for type 'A' You are testing out the new UFCS, right? Well, I

Re: Method invocation -- why it's not working?

2012-03-07 Thread Ali Çehreli
On 03/07/2012 03:54 PM, Ali Çehreli wrote: On 03/07/2012 03:21 PM, Comrad wrote: 1 struct A 2 { 3 double[2] _x; 4 } 5 6 @property ref double y(ref A a) {return a._x[1];} 7 8 void main() 9 { 10 A a1; 11 a1.y=2.; 12 } dmd test.d gives me: Error: no property 'y' for

Re: Method invocation -- why it's not working?

2012-03-07 Thread Andrej Mitrovic
Don't worry Ali I thought the same thing. :p

Re: Method invocation -- why it's not working?

2012-03-07 Thread Comrad
On Thursday, 8 March 2012 at 00:04:55 UTC, Ali Çehreli wrote: On 03/07/2012 03:54 PM, Ali Çehreli wrote: On 03/07/2012 03:21 PM, Comrad wrote: 1 struct A 2 { 3 double[2] _x; 4 } 5 6 @property ref double y(ref A a) {return a._x[1];} 7 8 void main() 9 { 10 A a1; 11 a1.y=2.; 12 } dmd

Re: Method invocation -- why it's not working?

2012-03-07 Thread H. S. Teoh
On Thu, Mar 08, 2012 at 07:32:18AM +0100, Comrad wrote: [...] Basically, I was following Andrei's book, where this feature is described. It's a pity, that it's not working (except arrays somehow) :( - I need it! Yeah there are some features in the book that aren't completely implemented yet.

Re: Method invocation -- why it's not working?

2012-03-07 Thread Jonathan M Davis
On Wednesday, March 07, 2012 22:40:02 H. S. Teoh wrote: On Thu, Mar 08, 2012 at 07:32:18AM +0100, Comrad wrote: [...] Basically, I was following Andrei's book, where this feature is described. It's a pity, that it's not working (except arrays somehow) :( - I need it! Yeah there are

Re: Method invocation -- why it's not working?

2012-03-07 Thread Comrad
On Thursday, 8 March 2012 at 06:43:45 UTC, Jonathan M Davis wrote: On Wednesday, March 07, 2012 22:40:02 H. S. Teoh wrote: On Thu, Mar 08, 2012 at 07:32:18AM +0100, Comrad wrote: [...] Basically, I was following Andrei's book, where this feature is described. It's a pity, that it's not

Re: Method invocation -- why it's not working?

2012-03-07 Thread Jonathan M Davis
On Thursday, March 08, 2012 08:37:38 Comrad wrote: On Thursday, 8 March 2012 at 06:43:45 UTC, Jonathan M Davis wrote: On Wednesday, March 07, 2012 22:40:02 H. S. Teoh wrote: On Thu, Mar 08, 2012 at 07:32:18AM +0100, Comrad wrote: [...] Basically, I was following Andrei's book, where