caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] variables communes
@ 2004-03-26 16:16 Benjamin Quetier
  2004-03-26 15:31 ` Richard Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Quetier @ 2004-03-26 16:16 UTC (permalink / raw)
  To: caml-list

Bonjour

je vous explique mon probleme. J'ai un programme avec cette définition 
de variable :

let my_env = ref 1


puis  en dessous

establish_server new_connection (ADDR_INET (ip,port))

qui me lance un serveur et à chaque connexion lance un nouveau 
processus  avec la fonction new_connection en lui passant en argument le 
channel_in et le channel_out)


maintenant, dans la fonction new_connection , je fais des :

my_env := (!my_env)+1


Mon problème est qu'en sortant de la fonction new_connection, la 
variable my_env du processus de base n'a pas été modifiée.

Comment faut-il faire?

merci d'avance

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-26 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-26 16:16 [Caml-list] variables communes Benjamin Quetier
2004-03-26 15:31 ` Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).