02-09-2005, 06:43 PM
Just guessing..
DATA must be stored as literals somewhere in the program so at runtime the progam performs a RESTORE then as many READS as needed. Nobody knows if a DATA is a string or numeric until READ is peformed so all data is in the .exe as strings.
Initializing variables at declaration is a matter of filling the variable space with the right values at compile time, so nothing must be done at runtime.
If everything is as I guess, variable init at declaration makes programs faster an smaller. We need it...
Also there are probably library headers using this variable init feature of C that can't be ported easily to FB.
DATA must be stored as literals somewhere in the program so at runtime the progam performs a RESTORE then as many READS as needed. Nobody knows if a DATA is a string or numeric until READ is peformed so all data is in the .exe as strings.
Initializing variables at declaration is a matter of filling the variable space with the right values at compile time, so nothing must be done at runtime.
If everything is as I guess, variable init at declaration makes programs faster an smaller. We need it...
Also there are probably library headers using this variable init feature of C that can't be ported easily to FB.
Antoni