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.0 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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id CC2E3BC0A for ; Sun, 10 Jun 2007 00:59:46 +0200 (CEST) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l59MxjLg023515 for ; Sun, 10 Jun 2007 00:59:46 +0200 Received: by mu-out-0910.google.com with SMTP id w9so389700mue for ; Sat, 09 Jun 2007 15:59:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; 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; b=UEIO6rGT3ceZ/dSGXkxKtSMuol6EUJRI4OzjbPVwqDIHC1WImxz2uBy1MPT4PYn3pxJIGFtyKaP7rI6lJ0NmZAgNG5vm8568B3QO972xjBqukYghmeuwj594sbQ9Ba8oSzjC4tB/qp1WuTL3BSJMphbPRL2NkWCtF/B8LMrxzQU= 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=pxPkR1CdplCuGGG915xNyOfFlSD5yA+GkpbWE16UdKaFe1akQxUIUgcgogDJd964TJ7pPzewl43QGNdu9s/gqqC59+CQMUbuHfzNnRLaQGltkiVYAocPcpvqu01ulg0JStMqXTAFXFZXAEN5BgIps7Hq0/qDYz8Kzu1HdLxvT8w= Received: by 10.82.126.5 with SMTP id y5mr8078012buc.1181429983513; Sat, 09 Jun 2007 15:59:43 -0700 (PDT) Received: from ?192.168.1.35? ( [81.33.210.207]) by mx.google.com with ESMTP id f7sm8103257nfh.2007.06.09.15.59.42 (version=SSLv3 cipher=OTHER); Sat, 09 Jun 2007 15:59:43 -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: camlp4 and class introspection Date: Sat, 9 Jun 2007 23:59:38 +0100 X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 466B30E1.003 on concorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at concorde with ID 466B30E1.003 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 runtime:01 blog:98 defined:02 types:03 variable:06 definition:07 object:09 instance:09 example:10 explain:11 bit:11 methods:12 translator:13 Is it possible to add code to a class's initialization section using camlp4? I would like to introspect the class definition to print instance variable names and types. Then I would like to introspect the methods. If anyone could give an example of how this is done with camlp4 3.10 I would really appreciate it! To explain a bit, I would like to make sure that each defined class is registered with the Objective-C runtime, only once, not per object instantiation. Thanks, Joel -- http://topdog.cc - EasyLanguage to C# translator http://wagerlabs.com - Blog