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