* Re: [Caml-list] variables communes
2004-03-26 16:16 [Caml-list] variables communes Benjamin Quetier
@ 2004-03-26 15:31 ` Richard Jones
0 siblings, 0 replies; 2+ messages in thread
From: Richard Jones @ 2004-03-26 15:31 UTC (permalink / raw)
To: Benjamin Quetier; +Cc: caml-list
> Comment faut-il faire?
If I understand this rightly, the process forks into two. Memory is
not shared between forked processes, so updating the memory of one of
them will not change the other one.
(Excuse me if I didn't understand the French language properly!)
Rich.
--
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
MOD_CAML lets you run type-safe Objective CAML programs inside the Apache
webserver. http://www.merjis.com/developers/mod_caml/
-------------------
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
* [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