Technically, C doesn't 'put' garbage values into variables. Those values just happen to be there if you don't set it to something.
Gambas wonderfully sets numeric variables to zero. You can think of it as NULL, I suppose, but ZERO is a numeric description dealing with numbers whereas NULL is usually referred to as something to do with characters, but NULL it is the value ZERO...so it all means the same except how humans talk about it. -Fernando ---------- Original Message ----------- From: KhurramM <kms...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Fri, 22 May 2009 21:22:33 -0700 (PDT) Subject: Re: [Gambas-user] C Code character manipulation - alternatives > TO: Ron_1st > > Either I am wrong or u r: > > DIM k, countVar AS Integer > PRINT k, countVar > > The output of these lines is: > 0 0 > > How come u say that both integers are initialized to NULL. > > This is a super feature of Gambas versus C, which puts garbage values into > variables of any type. > > Correct me if I am wrong. > > Best Regards > -- > View this message in context: http://www.nabble.com/C-Code-character- > manipulation---alternatives-tp23611042p23681295.html Sent from the > gambas-user > mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user