caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andreas Rossberg <rossberg@mpi-sws.org>
To: Keiko Nakata <keikonkt@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] unsigned 64-bit integers
Date: Mon, 28 Sep 2015 09:12:06 +0200	[thread overview]
Message-ID: <D4D88751-9A6F-4A72-9045-C03231443C02@mpi-sws.org> (raw)
In-Reply-To: <CALVfURzp02k_SB6sNH2KE5LvDXFDia68Xb5yBQDCO8_iqtRCFg@mail.gmail.com>

On Sep 28, 2015, at 08:47 , Keiko Nakata <keikonkt@gmail.com> wrote:
> Why do you not make your unsigned int64 an abstract type (to make sure singed and unsigned int64 won't be mixed up)?

Well, because that wouldn’t match the design being implemented there. For an assembly-like language, you don’t want to factor that way. For other purposes a separate ADT would make a lot of sense, of course. In any case, I was only pointing to this for the implementation of individual operators, not necessarily for the module as a whole.

/Andreas


  reply	other threads:[~2015-09-28  7:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-28  6:18 Keiko Nakata
2015-09-28  6:28 ` Andreas Rossberg
     [not found]   ` <CALVfURzG+osS8LofguLi5F+wtjzAAarQukXxKpyFJuvK8Abutg@mail.gmail.com>
2015-09-28  6:47     ` Keiko Nakata
2015-09-28  7:12       ` Andreas Rossberg [this message]
2015-09-28  7:40         ` Keiko Nakata
2015-09-28 13:44           ` Travis

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=D4D88751-9A6F-4A72-9045-C03231443C02@mpi-sws.org \
    --to=rossberg@mpi-sws.org \
    --cc=caml-list@inria.fr \
    --cc=keikonkt@gmail.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).