[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2007-03-07 (14:59) |
From: | Roland Zumkeller <roland.zumkeller@g...> |
Subject: | Re: [Caml-list] The sharing mechanism in the Marshal module |
On 03/03/07, Deokhwan Kim <dk@ropas.snu.ac.kr> wrote: > In addtion, what should I do if I really want the sharing of the c > counter between incr and incr1? It suffices to define "c" outside of "incr": let c = ref 0;; let incr () = c:= !c + 1 ; !c -- http://www.lix.polytechnique.fr/~zumkeller/