Re: method chaining

2010-11-08 Thread Jonathan M Davis
On Monday, November 08, 2010 11:39:43 spir wrote: > Hello, > > I don't understand why the compiler refuses the code below, with the error > __trials__.d(33): found '.' when expecting ';' following statement > (Note that method set returns this.) > > class C { > int i,j; > this (int i) { >

Re: method chaining

2010-11-08 Thread Tomek Sowiński
spir napisał: > Hello, > > I don't understand why the compiler refuses the code below, with the error > __trials__.d(33): found '.' when expecting ';' following statement > (Note that method set returns this.) > > class C { > int i,j; > this (int i) { > this.i = i; > } >

Re: method chaining

2010-11-08 Thread Steven Schveighoffer
On Mon, 08 Nov 2010 14:39:43 -0500, spir wrote: Hello, I don't understand why the compiler refuses the code below, with the error __trials__.d(33): found '.' when expecting ';' following statement (Note that method set returns this.) class C { int i,j; this (int i) { this.i