Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
caml: camlp4 revised syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] caml: camlp4 revised syntax
On Sunday 15 July 2007 11:48:42 wrote:
> 1) The internal integer coding:
> It seems that an integer of value "x" is internally stored like "2x*1" (
> x shift 1 or 1 ). That is a loss of performance, not only when doing
> calculations, but also, by example, when using the integer as index of a
> string character, ... . Usage of native-int doesn't improves the subject.

This is a trade-off, of course. You can use untagged but usually boxed ints in 
OCaml via the Int32 module.

> 2) Syntax:
> It seems better to use the camlp4 revised syntax than the usual one. The
> reason is, by example, to skip this kind of errors...

Such misunderstandings disappear when you use auto indentation in emacs.

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists