Zeev Suraski wrote: > At 09:50 18/03/2002, Yasuo Ohgaki wrote: > >> Markus Fischer wrote: >> >>> I wouldn't uset the word Heisenbugs. Not every developer is >>> familiar with it. Do you think it's possible to use a more >>> descriptive sentence? >> >> >> >> Oh. I agree. >> How about >> >> - Do not use assignment in assert condition. If assignment is used, >> there is risk that we have disapearing bug with debug build due to >> side of effect of assignment. Function calls in assert condition >> may create this bug also when parameter or global variable is >> changed. > > > Do not use assignments in assert conditions. If you assign inside an > assert condition, you risk an elusive bug that would be very difficult > to spot in a debug build, due to the side of effect of the assignment. > Function calls in assert conditions may also cause this problem, if they > modify one of their arguments or global variables. > >
Thanks a lot. Much easier to understand for me too :) -- Yasuo Ohgaki -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php