From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 2FD8D7EC6E for ; Wed, 18 Dec 2013 07:44:40 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of flux-caml@inside.org) identity=pra; client-ip=130.230.4.42; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="flux@modeemi.cs.tut.fi"; x-sender="flux-caml@inside.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of flux@modeemi.cs.tut.fi) identity=mailfrom; client-ip=130.230.4.42; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="flux@modeemi.cs.tut.fi"; x-sender="flux@modeemi.cs.tut.fi"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail.cs.tut.fi) identity=helo; client-ip=130.230.4.42; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="flux@modeemi.cs.tut.fi"; x-sender="postmaster@mail.cs.tut.fi"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwBAGxDsVKC5gQqmWdsb2JhbABZFoMsunsOAQEBAQEICwsHFCiCJQEBAQMBOjQQCwshJQ8BBBhEh3wIw3aFWBeMdII7hCABA5gWgTCUEQ X-IPAS-Result: AgwBAGxDsVKC5gQqmWdsb2JhbABZFoMsunsOAQEBAQEICwsHFCiCJQEBAQMBOjQQCwshJQ8BBBhEh3wIw3aFWBeMdII7hCABA5gWgTCUEQ X-IronPort-AV: E=Sophos;i="4.95,505,1384297200"; d="scan'208";a="49477566" Received: from mail.cs.tut.fi ([130.230.4.42]) by mail2-smtp-roc.national.inria.fr with SMTP; 18 Dec 2013 07:44:39 +0100 Received: from amavis2.cs.tut.fi (amavis2.cs.tut.fi [130.230.4.70]) by mail.cs.tut.fi (Postfix) with ESMTP id 77FC3C1F for ; Wed, 18 Dec 2013 08:44:38 +0200 (EET) Received: from mail.cs.tut.fi ([130.230.4.42]) by amavis2.cs.tut.fi (amavis2.cs.tut.fi [130.230.4.70]) (amavisd-maia, port 10024) with ESMTP id 22428-42 for ; Wed, 18 Dec 2013 08:44:37 +0200 (EET) Received: from modeemi.modeemi.fi (modeemi.modeemi.fi [130.230.72.134]) by mail.cs.tut.fi (Postfix) with SMTP id C39EBC1E for ; Wed, 18 Dec 2013 08:44:37 +0200 (EET) Received: from coffee.modeemi.fi (coffee.modeemi.fi [130.230.72.140]) by modeemi.modeemi.fi (Postfix) with ESMTP id A9FDF3931D for ; Wed, 18 Dec 2013 08:44:37 +0200 (EET) Received: by coffee.modeemi.fi (Postfix, from userid 17990) id 9CAA52D6166; Wed, 18 Dec 2013 08:44:37 +0200 (EET) From: Erkki Seppala To: caml-list@yquem.inria.fr References: <4DDEBB7487B641C0834F09D522EA9918@erratique.ch> <1C9496037B6149EC970D65C3BFA490F7@erratique.ch> <52B0F6A5.9060605@riken.jp> Date: Wed, 18 Dec 2013 08:44:37 +0200 In-Reply-To: <52B0F6A5.9060605@riken.jp> (Francois Berenger's message of "Wed, 18 Dec 2013 10:13:09 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.2 Subject: Re: [Caml-list] SDL2 bindings, testers and feedback welcome Francois Berenger writes: > Here is what I learned some time ago on this very same mailing-list; > at the top of some .ml file: > > module Vg = Vector_graphics Indeed. And to do it project-wide one can just put those into common.ml and open Common at top of the project files. This way one gets to use the same aliases in every file. Actually, once I've even done: module Fo = FooBarBaz20 module FooBarBaz20 = struct end in the file make it more difficult to accidentally use the full name and making things look inconsistent :). -- _____________________________________________________________________ / __// /__ ____ __ http://www.modeemi.fi/~flux/\ \ / /_ / // // /\ \/ / \ / /_/ /_/ \___/ /_/\_\@modeemi.fi \/