Browse thread
[Caml-list] Unix.kill on Win32
[
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: | -- (:) |
| From: | David Brown <caml-list@d...> |
| Subject: | Re: [Caml-list] static class member.... |
On Wed, Aug 06, 2003 at 04:10:51PM +0100, Richard Jones wrote:
> > > class foo =
> > > let counter = ref 0 in
Now I remember why I thought that wouldn't work.
class foo arg =
let counter = ref 0 in
...
would get a new counter instance each time the class is invoked. This
acts as a function wrapped around the class invocation.
Dave
-------------------
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