[Tutor] advice on global variables
Alan Gauld
alan.gauld at btinternet.com
Wed Jul 11 01:24:57 CEST 2012
On 11/07/12 00:16, Alan Gauld wrote:
>> One thought was a RAM based SQLite database, but that seems
> > like a lot of work. I dunno, maybe that is the option.
>
> is definitely the best option where the "global" needs to be shared
> across different programs as well as different modules in a single
I meant to add its also the right technique where the 'global' value has
to persist between different execution cycles of the program. (Or indeed
any kind of value needs to persist across execution cycles!)
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list