From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA02100; Sat, 22 Nov 2003 12:44:11 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA07760 for ; Sat, 22 Nov 2003 12:44:09 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hAMBi9112278 for ; Sat, 22 Nov 2003 12:44:09 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1ANWB4-00030t-00; Sat, 22 Nov 2003 11:43:50 +0000 Date: Sat, 22 Nov 2003 11:43:50 +0000 To: Kim Nguyen Cc: caml-list@inria.fr Subject: Re: [Caml-list] Accuracy of Gc.stat () Message-ID: <20031122114350.GA11531@redhat.com> References: <1970C334-1AB9-11D8-ADB3-000393DBC266@epfl.ch> <20031122012054.0dbd44e2.nguyen@bk.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <20031122012054.0dbd44e2.nguyen@bk.ru> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 kim:99 endline:01 endline:01 freshmeat:01 obstacle:01 vanier:01 ltd:98 bool:01 bool:01 bytecode:01 bytecode:01 nov:01 ought:01 native:02 X-Attachments: type="application/pgp-signature" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 22, 2003 at 01:20:54AM +0100, Kim Nguyen wrote: > external is_bytecode : unit -> bool =3D "is_bytecode_bytecode" "is_byteco= de_native" Neat trick. This _ought_ to work, but it doesn't for some reason: let arg =3D (true, false)=20 external is_bytecode : bool * bool -> bool =3D "%field0" "%field1"=20 =20 let () =3D=20 if is_bytecode arg then=20 print_endline "Bytecode!"=20 else=20 print_endline "Native!"=20 Perhaps someone can explain why ... Rich. --=20 Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment "One serious obstacle to the adoption of good programming languages is the notion that everything has to be sacrificed for speed. In computer languages as in life, speed kills." -- Mike Vanier --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/v0v24le1M6q9pzoRAl9lAJ9sLI1SLhFX2qc5YuwFQQ9V6w/MwgCffwOh NmxqsXEArQLrPQ0Sh1F4sYk= =OCek -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners