From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA16676; Wed, 6 Feb 2002 21:39:52 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA15946 for ; Wed, 6 Feb 2002 21:39:51 +0100 (MET) Received: from decis.be ([194.78.208.93]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g16Kdon19858 for ; Wed, 6 Feb 2002 21:39:50 +0100 (MET) Received: from decis.be [192.168.0.20] by decis.be [194.78.208.93] with SMTP (MDaemon.v3.5.3.R) for ; Wed, 06 Feb 2002 21:30:57 +0100 Message-ID: <3C61958D.C03D2463@decis.be> Date: Wed, 06 Feb 2002 21:43:57 +0100 From: Frederic van der Plancke X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Suggestion for Int32.rotate References: <20020205000643.A31440@gogol.zorgol> <20020206190151.A9371@pauillac.inria.fr> <20020206210814.A15985@verdot.inria.fr> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MDRemoteIP: 192.168.0.20 X-Return-Path: fvdp@decis.be X-MDaemon-Deliver-To: caml-list@pauillac.inria.fr Reply-To: fvdp@decis.be Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Daniel de Rauglaudre wrote: > > Hi, > > On Wed, Feb 06, 2002 at 07:01:51PM +0100, Xavier Leroy wrote: > > > A C-style syntax would be 12345L for int32 and 123456789LL for > > int64; what about nativeint? 12345N ? Anything nicer? > A small problem of 12345L is that "L" for "long" is not justified on 64-bit platforms, and more importantly it is not at all obvious what length it actually represents. What about 12345i32, 123456789i64, like some C(++) compilers do; that would preserve extensibility (in case one wants 123456789i128 in the future), and makes the value types clearer and more consistent, even though it makes the actual values somewhat less readable, specially if one uses an uppercase I. ('N' or (why not) 'L' could be used instead.) For native ints we could then chose either 12345i or 12345n. And keep the other one for arbitrary-sized integers. Just my €0.02 worth of suggestions... I can live with L and LL. Frédéric vdP ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr