Browse thread
[Caml-list] static variables in a function
[
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: | Shannon --jj Behrens <jjinux@y...> |
| Subject: | [Caml-list] static variables in a function |
Hi, What is the correct OCAML idiom for achieving the following psuedocode? let get_chunk () = static chunks_list; if List.is_empty chunks_list then chunks_list = get_more_chunks (); shift chunks_list ;; Thanks You, -jj __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com ------------------- 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