vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| We had a similar discussion in the office very recently. I told the guys not to asume anything about variables, but to be very precise / specific - to always initialise variables before working with them, and I think this is a general programming rule in other languages as well. In our case they were working with variables they did not always initialise, and got inconsistent results back. I also remember from my programming days that NULL values were not consistent. I agree with testing for NULLS specifically and treating them as just that. Dirk -----Original Message----- From: owner-informix-list@iiug.org [mailto On Behalf Of Clive Eisen Sent: 26 October 2005 02:40 PM To: informix-list@iiug.org Subject: Re: 4GL compares NULL differently Denis Melnikov wrote: > P.S. 4GL C compiler. > > Because any equality or inequality test against null is specifically undefined You have to test 'is null'ness before applying your !=0 or whatever tests -- Clive sending to informix-list |