Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] failwith, raise and type inference
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe TROESTLER <debian00@t...>
Subject: Re: [Caml-list] failwith, raise and type inference
> --- Pierre Weis <pierre.weis@inria.fr> wrote:
> > [...]
> > Operator precedence in Caml has been carefully crafted, you should

Well I have a little question on this.  The guide says "Arithmetic
operators: the same rules as in mathematics." but

-. 3.**2.

returns 9. while in math -x^2 means -(x^2) and not (-x)^2 !  I am
curious why such an oddity.

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