[gtkada] (global) variables
Thomas De Contes
d.l.tDeContes at free.fr
Wed Jan 12 20:26:41 CET 2005
Le mercredi, 12 jan 2005, à 18:02 Europe/Paris, Manuel Op de Coul a
écrit :
> But often it's not necessary to access them again after creation, so
> they can be local variables in the Initialize procedure, and can even
> be reused.
ok, i didn't understand why it was reused,
in fact it is useful only for create objects :-)
"often" ?
in which cases i could need a such variable later ?
> So it saves pointer dereferences to do this, which saves a
> little bit of program size.
ok :-)
> If you generate the code with Glade, you will get record types with all
> the widgets in them, so your program can access each.
btw, about global variables,
i hate global variables !!
in terminal programs, i used to put my "global" variables in the main
procedure, and then i passed them at each procedure or function which
need them
is it possible to do the same with gtkada, or need i really make global
variables in a package ?
More information about the gtkada
mailing list