caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: AUGER <Cedric.Auger@lri.fr>
To: "caml users" <caml-list@inria.fr>
Subject: Re: [Caml-list] Random questions
Date: Thu, 03 Dec 2009 17:45:04 +0100	[thread overview]
Message-ID: <op.u4dfhepil4bj1b@lri4-139> (raw)
In-Reply-To: <BDF3A00A-F3D0-42BC-BB26-6CBE75D1881E@inria.fr>

Le Thu, 03 Dec 2009 17:01:18 +0100, Damien Doligez  
<damien.doligez@inria.fr> a écrit:

>
> On 2009-12-03, at 12:00, AUGER wrote:
>
>> (* preliminary function: negate_minus_1 : int -> int : n |-> -n-1 *)
>> let negate_minus_1 = (lor) (-(max_int/2)-1) (* or inline the constant *)
>
> You probably mean this:
>
>     let negate_minus_1 = (lxor) (-1);;
>
> -- Damien

You are right

>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


-- 
Cédric AUGER

Univ Paris-Sud, Laboratoire LRI, UMR 8623, F-91405, Orsay


      reply	other threads:[~2009-12-03 16:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18 10:59 Daniel Bünzli
2009-12-03 11:00 ` [Caml-list] " AUGER
2009-12-03 14:48   ` Daniel Bünzli
2009-12-03 15:11     ` AUGER
2009-12-03 16:01   ` Damien Doligez
2009-12-03 16:45     ` AUGER [this message]

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=op.u4dfhepil4bj1b@lri4-139 \
    --to=cedric.auger@lri.fr \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).