Why are opCall's not implicitely assignable?

Derek Parnell derek at psyc.ward
Tue Sep 26 14:58:48 PDT 2006


On Wed, 27 Sep 2006 07:56:48 +1000, Derek Parnell wrote:


>  car.roof.topcoat   = COLOR.RED;
>  car.roof.undercoat = COLOR.WHITE;

Oops, I forgot to mention that making it easier to write is also a good
thing so a syntax like ...

  with car.roof
  {
     .topcoat = COLOR.RED;
     .undercoat = COLOR.WHITE;
  }

is nice too.

-- 
Derek Parnell
Melbourne, Australia
"Down with mediocrity!"



More information about the Digitalmars-d-learn mailing list