unsigned policy

Derek Parnell derek at psych.ward
Wed Feb 14 12:55:47 PST 2007


On Wed, 14 Feb 2007 12:24:59 -0800, Andrei Alexandrescu (See Website For
Email) wrote:


> x = y;    // should not work, use x = cast(bool)y or x = y ? 1 : 0

Did you mean ... 

  int x;
  bool y;
  x = y;    // should not work, use x = cast(int)y or x = y ? 1 : 0

I'm in full agreement with your bool/int rules, BTW.
-- 
Derek Parnell
Melbourne, Australia
"Justice for David Hicks!"
skype: derek.j.parnell



More information about the Digitalmars-d mailing list