Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Till Varoquaux <till.varoquaux@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Curried form different from "normal"
Date: Sun, 5 Feb 2006 17:40:56 +0100	[thread overview]
Message-ID: <9d3ec8300602050840ha03fcd2wf8a43bd7a09732f2@mail.gmail.com> (raw)

I can across something that puzzled me while develloping a caml application:

Using:
 let non_blank_string=
      if !is_first then
	trailling:=Buffer.contents white
      else
	Buffer.add_buffer buf white;
      Buffer.reset white;
      is_first:=false;
      Buffer.add_string buf

instead of

 let non_blank_string s=
      if !is_first then
	trailling:=Buffer.contents white
      else
	Buffer.add_buffer buf white;
      Buffer.reset white;
      is_first:=false;
      Buffer.add_string buf s

Doesn't yeld the same results (the former is buggy). Now, as I
understand, these two functions should be exactly equivalent. I am
misunderstanding something here?

Cheers,

Till Varoquaux


             reply	other threads:[~2006-02-05 16:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-05 16:40 Till Varoquaux [this message]
2006-02-05 16:59 ` [Caml-list] " David Baelde
2006-02-05 18:00 ` 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=9d3ec8300602050840ha03fcd2wf8a43bd7a09732f2@mail.gmail.com \
    --to=till.varoquaux@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /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