RE: Informix 4GL SMALLINT variables
Posted in 2000
Code review ??? We all review our own code. If we are happy with it then we ship it !!!!! And bo??ocks to anyone who doesn't like it. Thats the attitude here anyway. Maybe I informix should create a new product - Anal 4gl (Has a nice ring to it, if you pardon the expression) -----Original Message----- From: ROBERT B VORBROKER [mailto:ROBVORBROKER@prodigy.net] Sent: 29 March 2000 15:05 To: Rekaish Bhardwaj Subject: Re: Informix 4GL SMALLINT variables Has he ever had to go thru a CODE REVIEW??? I used to work for ATT Bell Labs...Talk about your anal retentives... Good luck. Rob Vorbroker ----- Original Message ----- From: Rekaish Bhardwaj <RekaishB@compans.com> To: 'ROBERT B VORBROKER' <ROBVORBROKER@prodigy.net> Sent: Wednesday, March 29, 2000 3:26 AM Subject: RE: Informix 4GL SMALLINT variables > yes I agree. I'm just having a minor disagreement with a programmer here who > doesn't wish to > initialise his variables on the grounds that > a) His program works as it is. > b) I've asked him to initialise his variables. > > I'm sure we've all met the type ;) > > Cheers > Rekaish > > -----Original Message----- > From: ROBERT B VORBROKER [mailto:ROBVORBROKER@prodigy.net] > Sent: 28 March 2000 16:55 > To: informix-list@iiug.org > Subject: Re: Informix 4GL SMALLINT variables > > > > Goes back to my college programming classes (at least the c-code version > does). > > Always initialize your variables or you get whatever was previously in that > memory location. > Porting to C from RDS does show you all the short-cuts and BAD coding > practices you may > have used... > > Rob Vorbroker > Obnoxio The Clown <obnoxio@hotmail.com> wrote in message > news:8bq648$hil$1@news.xmission.com... > > > > From: "Richard harnden" <harndr@russelleurope.com> > > > > > >No. > > > > > >For p-code versions then they get initialized to null ( I think ). > > > > >For compiled versions they don't get initialized at all.. > > > > Half-right, and I was half-wrong. For p-code, numerics get initialised to > 0, > > strings get initialised to " ". For compiled C, nothing gets > initialised -- > > you just get what was in that memory location. It all comes back to me > now, > > like a bad meal. > > > > This is why I hated porting from RDS to C. You discovered all the > short-cuts > > you'd taken... :-) > > > > > > ______________________________________________________ > > Get Your Private, Free Email at http://www.hotmail.com > > >