Nicolas Cannasse wrote:
> Of course in OCaml you can always have some globals being locals.
> But for example, sometimes you have quite a deep-called function that
> actually needs one variable that is only known 5 or 6 functions up in the
> call stack. Adding an extra argument to all the intermediate functions even
> if they don't use it can be done once, perhaps twice but definitly not three
> times :-) Sometimes when you having something like this it's usefull to use
> something like globals . If you look at the sources of the ocaml compiler,
> there is a lot of such samples.
Globals are EVIL
John Max Skaller, mailto:skaller@...
snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia.