English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
mlsize_t and size_t.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-02-03 (17:29)
From: Guillaume Yziquel <guillaume.yziquel@c...>
Subject: mlsize_t and size_t.

I've been wanting to wrap a size_t value to ocaml. I therefore have a 
few questions about this:

-1- What is the rationale that makes OCaml uses an mlsize_t instead of 
size_t? On Linux platforms, it seems that both are unsigned long ints.

-2- would a 'type size = private nativeint' do the trick?

All the best,

      Guillaume Yziquel