Re: const confusion

2009-06-23 Thread Witold Baryluk
Dnia 2009-06-01, pon o godzinie 16:44 -0400, Steven Schveighoffer pisze: > On Mon, 01 Jun 2009 16:01:04 -0400, Witold Baryluk > wrote: > > > Dnia 2009-05-31, nie o godzinie 15:36 -0400, Jarrett Billingsley pisze: > >> On Sun, May 31, 2009 at 3:26 PM, Witold Baryluk > >> wrote: > >> > > >> > Ho

Re: const confusion

2009-06-01 Thread Steven Schveighoffer
On Mon, 01 Jun 2009 16:01:04 -0400, Witold Baryluk wrote: Dnia 2009-05-31, nie o godzinie 15:36 -0400, Jarrett Billingsley pisze: On Sun, May 31, 2009 at 3:26 PM, Witold Baryluk wrote: > > Horrible. > > How to ensure constness of data, and still have possibility of changing references of

Re: const confusion

2009-06-01 Thread Jarrett Billingsley
On Mon, Jun 1, 2009 at 4:01 PM, Witold Baryluk wrote: > Dnia 2009-05-31, nie o godzinie 15:36 -0400, Jarrett Billingsley pisze: >> On Sun, May 31, 2009 at 3:26 PM, Witold Baryluk >> wrote: >> > >> > Horrible. >> > >> > How to ensure constness of data, and still have possibility of changing >> >

Re: const confusion

2009-06-01 Thread Witold Baryluk
Dnia 2009-05-31, nie o godzinie 15:36 -0400, Jarrett Billingsley pisze: > On Sun, May 31, 2009 at 3:26 PM, Witold Baryluk > wrote: > > > > Horrible. > > > > How to ensure constness of data, and still have possibility of changing > > references of local variables? > > Rebindable. > > http://www.

Re: const confusion

2009-05-31 Thread Jarrett Billingsley
On Sun, May 31, 2009 at 3:26 PM, Witold Baryluk wrote: > Hi, > > i haven't been here for so long time. So hi all. I'm back again. > > I was considering myself as hardcore D hacker, but > in one point I fail completly. Constness. > > Consider this simple code: > > module ct; > > class C { >        

const confusion

2009-05-31 Thread Witold Baryluk
Hi, i haven't been here for so long time. So hi all. I'm back again. I was considering myself as hardcore D hacker, but in one point I fail completly. Constness. Consider this simple code: module ct; class C { const int a; const C b; this(int a_) { a =