caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <gerd@gerd-stolpmann.de>
To: Chet Murthy <chet@watson.ibm.com>, caml-list@inria.fr
Subject: Re: 32-bit integer operations
Date: Sun, 7 Jan 2001 21:51:07 +0100	[thread overview]
Message-ID: <01010721531404.01504@ice> (raw)
In-Reply-To: <200101070420.XAA04706@bismarck-chet.watson.ibm.com>

On Sun, 07 Jan 2001, Chet Murthy wrote:
>Hmmm ..... perhaps I've lost my mind.
>
>I decided to use 32-bit integers (int32) for some operations in a
>program today, and I was about to code something which required me to
>do a comparison between two of them, and ... I can't figure out how to
>do it.
>
>That is, there isn't any comparison operator defined.  I suppose I
>could code one up, using various primitives, but I figured I'd point
>this out, in the hope that somebody could slap me upside the head and
>point me at the officially-blessed way of doing this.

Simply use <, <=, >, >=, =, <>. They work perferctly for int32 (as for all core
types of the language).

gerd
-- 
----------------------------------------------------------------------------
Gerd Stolpmann      Telefon: +49 6151 997705 (privat)
Viktoriastr. 100             
64293 Darmstadt     EMail:   gerd@gerd-stolpmann.de
Germany                     
----------------------------------------------------------------------------



      reply	other threads:[~2001-01-07 21:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-07  4:20 Chet Murthy
2001-01-07 20:51 ` Gerd Stolpmann [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=01010721531404.01504@ice \
    --to=gerd@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    --cc=chet@watson.ibm.com \
    /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).