From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 29BC8BB9A for ; Sun, 30 Oct 2005 02:12:28 +0100 (CET) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9U1CRp6012967 for ; Sun, 30 Oct 2005 02:12:27 +0100 Received: by wproxy.gmail.com with SMTP id i6so373743wra for ; Sat, 29 Oct 2005 18:12:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tm0R3N4aoh3bkDhrcICxuaoCDpL/SKqmXnxgAkui9wRGgT5yILBy1JlG1hzCQsB2jEiYl51IkVr8Yj05Vk7UcJKJ9zKpR9TW97ZJsrbklue9QlhAdFIBVTLY2kaS52ZfK6hVdlNrsnB8AZklLOEqoQ+BjG4DP5s9iXj4rmWGa6c= Received: by 10.64.143.6 with SMTP id q6mr492631qbd; Sat, 29 Oct 2005 18:12:27 -0700 (PDT) Received: by 10.65.23.20 with HTTP; Sat, 29 Oct 2005 18:12:27 -0700 (PDT) Message-ID: Date: Sun, 30 Oct 2005 14:12:27 +1300 From: Jonathan Roewen Subject: Re: [Caml-list] Changing implementations of standard libraries... Cc: caml-list@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1130585800.15589.131.camel@localhost.localdomain> X-Miltered: at nez-perce with ID 43641DFB.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 compiler:01 stdlib:01 customised:01 compiler:01 specifies:01 threads:01 ocaml:01 ...:98 ....:98 ....:98 tail:01 cma:01 heh:02 heh:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 Include paths. I see from the compiler sources, that when specifying -vmthreads, it adds +vmthreads to the HEAD of the include paths. When someone does -I on the command line, I assume these go at the TAIL of the include paths? And, because +vmthreads is at the head of the include path, it finds stdlib.cma in +vmthreads directory BEFORE the standard include directory, hence choosing the correct alternative implementation. Is this how it works? Sooo.... to make life simple for building apps targeting DST, I could make a customised version of the compiler, adding say a "dst" flag that specifies a different directory for a specialised implementation of the standard libraries, and threads, etc? And then, if DST ever takes off, could get integrated into the main ocaml suite? ;D Heh heh heh.... Jonathan