Silly simple question...

Previous topic - Next topic

bigsofty

Are all new variables, typed records, arrays of types, numeric, locals, globals etc. automatically initialised with 0? My initial tests say they are but it would be nice to have the official word?
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Moru

In basic they are supposed to be at least.

Kitty Hello

Yes, unless spcified outside of a function:
function foo:
endfunction
GLOBAL init = 13

bigsofty

Ah, thats good... have... to... resist... typing... "GLOBAL a = 0" hehe ;)
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)