Re: dumb coding ??

From: Edward Glamkowski (EGlamkowski@MATHEMATICA-MPR.COM)
Date: 10/30/97


>>An "if (x = y)" error is evil to find when you're just learning :).
>           ^
>I used to do a lot of the "duh" bug searching too.

An interesting trick I just learned recently for this
type of thing is that if y is a constant, put it on the
left, so you have something like:
  if (0 = x)

which will generate an error message, where 'if (x = 0)'
doesn't, and can be annoying to track down.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST