From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 24830BC69 for ; Wed, 24 Oct 2007 22:48:13 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAOZLH0fUnw6Dnmdsb2JhbACCOIwjAgEBBwQGERiBJw X-IronPort-AV: E=Sophos;i="4.21,326,1188770400"; d="scan'208";a="3569438" Received: from pih-relay04.plus.net ([212.159.14.131]) by mail2-smtp-roc.national.inria.fr with ESMTP; 24 Oct 2007 22:48:12 +0200 Received: from [80.229.56.224] (helo=beast.local) by pih-relay04.plus.net with esmtp (Exim) id 1Ikn9B-00052T-01 for caml-list@yquem.inria.fr; Wed, 24 Oct 2007 21:48:13 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] type abbreviation is cyclic Date: Wed, 24 Oct 2007 21:40:20 +0100 User-Agent: KMail/1.9.7 References: <344522.90449.qm@web82102.mail.mud.yahoo.com> <471F847C.1050609@janestcapital.com> <9d3ec8300710241109ie0d1350v7f0201e635defc4d@mail.gmail.com> In-Reply-To: <9d3ec8300710241109ie0d1350v7f0201e635defc4d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710242140.21143.jon@ffconsultancy.com> X-Spam: no; 0.00; abbreviation:01 afaik:01 -rectypes:01 inference:01 ocaml:01 compiler:01 segfault:01 -rectypes:01 ocaml:01 indirection:01 frog:98 polymorphic:01 wrote:01 caml-list:01 cyclic:01 On Wednesday 24 October 2007 19:09:13 Till Varoquaux wrote: > ... > AFAIK -rectypes doesn't break any of the programs working before but > if you attend to use it you will probably run in problems with type > inference (not polymorphic enough). I would recommend steering clear > of it for anything else than toy programs. You used to be able to get the OCaml compiler to segfault by using -rectypes inconsistently while compiling. I believe that -rectypes can be useful. For example, the OCaml implementations of the ray tracer benchmark use it to good effect to implement the scene tree without an extra level of indirection. I have never bothered turning it on for any significant projects or during development though, so I can't say with any certainty whether or not it has a practical impact on error messages. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e