Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Guillaume Yziquel <guillaume.yziquel@c...>
Subject: mlsize_t and size_t.
Hi.

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
http://yziquel.homelinux.org/