caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Curried form different from "normal"
@ 2006-02-05 16:40 Till Varoquaux
  2006-02-05 16:59 ` [Caml-list] " David Baelde
  2006-02-05 18:00 ` Jon Harrop
  0 siblings, 2 replies; 4+ messages in thread
From: Till Varoquaux @ 2006-02-05 16:40 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-05 18:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-05 16:40 Curried form different from "normal" Till Varoquaux
2006-02-05 16:59 ` [Caml-list] " David Baelde
2006-02-05 18:00 ` Jon Harrop
2006-02-05 18:14   ` Till Varoquaux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).