caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] int32/int64 literals in next release?
@ 2002-11-13 22:03 Chris Hecker
  2002-11-13 21:42 ` Pierre Weis
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Hecker @ 2002-11-13 22:03 UTC (permalink / raw)
  To: caml-list


Is there any chance some way of inputing int32/int64 literals can be
added to the compiler for this next release?  It's a pain in the rear
to convert them from strings and whatnot, and as they become more and
more usable (unboxing optimizations, used in more apis, work in
printf/scanf, etc.) it becomes relatively more of a pain to initialize
the damn things.  And, I'd say it's more likely that you'll use
int32/int64 with constant bit patterns in source because they're
full-width and useful for interfacing with the outside world.  It
would also eliminate the need for the really silly part at the top of
the two interfaces with the "chosen constants":

<<
  val zero : int32
>>
                The 32-bit integer 0.
<<
  val one : int32
>>
                The 32-bit integer 1.
<<
  val minus_one : int32
>>
                The 32-bit integer -1.

There have been a bunch of syntax proposals on this list before.  I'd
be happy with any of them as long as there was some way to do it (in
hex,dec,bin,oct of course, and with the new _ separator :).

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-11-26  7:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 22:03 [Caml-list] int32/int64 literals in next release? Chris Hecker
2002-11-13 21:42 ` Pierre Weis
2002-11-14  7:44   ` Shawn Wagner
2002-11-14  8:49     ` Yurii A. Rashkovskii
2002-11-15  0:14       ` Shawn Wagner
2002-11-15  5:32         ` Daniel de Rauglaudre
2002-11-26  7:10     ` Shawn Wagner

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).