From: Chris Hecker <checker@d6.com>
To: Henri DF <henri.dubois-ferriere@epfl.ch>, caml-list@inria.fr
Subject: Re: [Caml-list] let rec when not recursive
Date: Thu, 24 Apr 2003 10:47:41 -0700 [thread overview]
Message-ID: <4.3.2.7.2.20030424104500.03c98408@localhost> (raw)
In-Reply-To: <Pine.LNX.4.44.0304241551440.24099-100000@lcmpc4.epfl.ch>
>the only think i could think
>of was to make it recursive, even though it isn't (because the
>sched#sched_in call returns immediately).
Here's how I did this same thing using LablTk a long time ago. I was
originally not removing the timer at the end of the run and tk would
eventually freak out after a bunch of runs.
let rec timer_t = ref
(let rec add_timer () = Timer.add ~ms:1
~callback:(fun () -> (try display togl with _ -> ()); timer_t :=
add_timer ()) in
add_timer ())
in
blah..
Timer.remove !timer_t
Chris
-------------------
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
prev parent reply other threads:[~2003-04-24 17:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-24 13:58 henridf
2003-04-24 14:05 ` Mike Lin
2003-04-24 17:47 ` Chris Hecker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4.3.2.7.2.20030424104500.03c98408@localhost \
--to=checker@d6.com \
--cc=caml-list@inria.fr \
--cc=henri.dubois-ferriere@epfl.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox