From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 49CBABBAF for ; Wed, 3 Feb 2010 18:29:16 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai4BAHFBaUtV2gB5mWdsb2JhbACDM5gOAQEBAQEICwoHE6wxkCSBLYI+WgSJUA X-IronPort-AV: E=Sophos;i="4.49,399,1262559600"; d="scan'208";a="55384874" Received: from emailfrontal2.citycable.ch ([85.218.0.121]) by mail4-smtp-sop.national.inria.fr with SMTP; 03 Feb 2010 18:29:16 +0100 Received: from [192.168.0.12] (unknown [85.218.92.99]) (Authenticated sender: guillaume.yziquel@citycable.ch) by emailfrontal2.citycable.ch (Postfix) with ESMTPA id 672CC83440D; Wed, 3 Feb 2010 18:29:12 +0100 (CET) Message-ID: <4B69B27C.4020702@citycable.ch> Date: Wed, 03 Feb 2010 18:29:32 +0100 From: Guillaume Yziquel Reply-To: guillaume.yziquel@citycable.ch User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: OCaml List Subject: mlsize_t and size_t. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; guillaume:01 guillaume:01 mlsize:01 ocaml:01 ocaml:01 mlsize:01 ints:01 unsigned:02 seems:03 size:95 size:95 long:06 trick:06 linux:07 uses:07 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/