Mike Breuer wrote: > Option 1: > Conditionals are always evaluated left to right, except when operator > precedence demands otherwise. Good shot, might be that indeed the terms are evaluated left to right (as indeed normally is the case). I dunno how the compiler handles this with lazy evaluation (if it evaluates humanly from right to left, and only lexically from left to right) but you can test it by trying. if (!*str || !str) return; and see if it still crashes. It all kinda depends on the compiler. Cheers, Aragorn -- ------ WARNING: This signature contains a VIRUS ! ------- - SHLRUIOHUIOWHLNNMSKHKDLWINDOWSJHFHKJLLUIHEKJLNDHKKJHL - --------------------------------------------------------- -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST