[Tutor] confusion with dictionaries
Thomi Richards
thomi at imail.net.nz
Sat Dec 20 16:50:10 EST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>
> So what happens here is that your default value gets only once
> evaluated: the time you create the function. All further calls to the
> function which don't give the default value will use exactly the same
> dictionary: the one which was created the moment the function definition
> was evaluated.
>
OK, that's....wierd, but I can handle it ;)
I'm trying to learn C/ Lua/ Python, and Delphi all at the same time, sometimes
I get a little confused between them. (It's not uncommon to see me trying to
put semi colons at the end of my python statements).
Anyway, thanks a lot for this; It's made it much clearer to me...
- --
Thomi Richards,
http://once.sourceforge.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/5MQS2tSuYV7JfuERAtYuAJwJYnMGcf7Qi49hj6TNXexnjdaxQwCfVTkv
N9nHQZhodVxhAPM0kBHIntg=
=M/HR
-----END PGP SIGNATURE-----
More information about the Tutor
mailing list