Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Why is (@) written in O'Caml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pal-Kristian Engstad <engstad@n...>
Subject: Re: [Caml-list] Why is (@) written in O'Caml?
On Thursday 05 December 2002 03:27 pm, Oleg wrote:
> P.S. I tried replying off the list (where "what do you mean" questions
> usually belong), but your mail server is refusing access.

Hmm, that's odd - I get mails all the time. :-)

Btw, I had a look at it on the net, and apparently this would benefit from 
"last call modulo constructor" optimization. In append we are returning 
either Nil or Cons(hd, tl), and the compiler should be able to optimize 
append, since the only call to the recursive function is in the Cons 
constructor. 

I'm not sure if Ocaml does this though. 

PKE.
-- 
  _       
  \`.       Pål-Kristian Engstad, Senior Software Engineer,
   \ `|     Naughty Dog, Inc., 1315 3rd Street Promenade, 
  __\ |`.   Santa Monica, CA 90046, USA. (310) 752-1000 x799. 
    /  /o   mailto:engstad@naughtydog.com http://www.naughtydog.com
   /  '~    mailto:mrengstad@yahoo.com    http://www.engstad.com
  / ,'      Hang-gliding Rulez!
  ~'

-------------------
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