From: David Baelde <david.baelde@gmail.com>
To: Till Varoquaux <till.varoquaux@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Curried form different from "normal"
Date: Sun, 5 Feb 2006 17:59:00 +0100 [thread overview]
Message-ID: <53c655920602050859k3e82b21ar54783443948a6301@mail.gmail.com> (raw)
In-Reply-To: <9d3ec8300602050840ha03fcd2wf8a43bd7a09732f2@mail.gmail.com>
Hi,
Your statement is true only for purely functional definitions. Here,
there is a difference. The following piece of code is evaluated only
one, at the time of the outermost definition. So trailing is
instantiated only once.
> if !is_first then
> trailling:=Buffer.contents white
> else
> Buffer.add_buffer buf white;
> Buffer.reset white;
> is_first:=false;
This kind of effect is sometimes expected, however.
Have fun.
--
David
next prev parent reply other threads:[~2006-02-05 16:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-05 16:40 Till Varoquaux
2006-02-05 16:59 ` David Baelde [this message]
2006-02-05 18:00 ` [Caml-list] " Jon Harrop
2006-02-05 18:14 ` Till Varoquaux
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=53c655920602050859k3e82b21ar54783443948a6301@mail.gmail.com \
--to=david.baelde@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=david.baelde@ens-lyon.org \
--cc=till.varoquaux@gmail.com \
/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