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=1.1 required=5.0 tests=AWL,SPF_NEUTRAL 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 EFD6DBC6B for ; Tue, 9 Oct 2007 12:56:16 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAGr6CkfAXQImh2dsb2JhbACORwEBAQgKKQ X-IronPort-AV: E=Sophos;i="4.21,248,1188770400"; d="scan'208";a="2758867" Received: from discorde.inria.fr ([192.93.2.38]) by mail2-smtp-roc.national.inria.fr with ESMTP; 09 Oct 2007 12:56:16 +0200 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l99AuANJ009374 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 9 Oct 2007 12:56:16 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAAT7CkdC+VyqkGdsb2JhbACORwEBAQEHBAYREQU X-IronPort-AV: E=Sophos;i="4.21,248,1188770400"; d="scan'208";a="4243949" Received: from ug-out-1314.google.com ([66.249.92.170]) by mail3-smtp-sop.national.inria.fr with ESMTP; 09 Oct 2007 12:56:16 +0200 Received: by ug-out-1314.google.com with SMTP id m3so62754ugc for ; Tue, 09 Oct 2007 03:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; bh=Zk8TA2xtRIBmtJfX7pfVE/joNk4H/fNYj53Q2TKO4Ac=; b=VZf1uNg4YACkmItt71oEFncWnmkT+HtTdvYHa0D/s+2K6YVA2u8cat9Ak5Ssoi4pGAUuXQ9RM0uZQ0yY7e8C29Epim4kJhu7rOk9t5hJTvqBN/KKwyTyQNTapoeBrMWsNQ6XR4ZMH90IFvfUcEK1opq2b3vPE2W3mf/BFm6mZZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=tHtERNVbbR0jWb67bj/1a/nLtPuudr332cs0AuytZP/V530vXX6EzOQHvHNr3484k7o9QwBm6ZmrYEAVdy6HBFHGbX06wnTwqhGB1dE0FgSCkjO40xfcT3fgav7PPACHYWC8EORzkypWI/lEP+SjqXKAmWkZfv5AAzhTWYg01MQ= Received: by 10.67.96.16 with SMTP id y16mr648543ugl.1191927375555; Tue, 09 Oct 2007 03:56:15 -0700 (PDT) Received: from ?192.168.1.33? ( [83.52.235.32]) by mx.google.com with ESMTPS id j1sm1170287ugf.2007.10.09.03.56.13 (version=SSLv3 cipher=OTHER); Tue, 09 Oct 2007 03:56:14 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Caml List From: Joel Reymont Subject: Adding class initializers with camlp4 Date: Tue, 9 Oct 2007 11:56:14 +0100 X-Mailer: Apple Mail (2.752.3) X-Miltered: at discorde with ID 470B5E4A.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 initializer:05 initializers:07 initializers:07 examples:07 extend:07 example:10 fields:12 some:14 add:14 does:14 adding:15 code:17 thanks:17 Does anyone have examples of how to add initializer code to a class via camlp4? It's not clear to me how one can extend the list of existing initializers, for example. There may be some or there may be none. Same thing with fields. Thanks, Joel -- http://wagerlabs.com