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_FAIL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 6AE2EBC69 for ; Tue, 8 May 2007 00:23:48 +0200 (CEST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id l47MNlrd018000 for ; Tue, 8 May 2007 00:23:48 +0200 Received: (qmail invoked by alias); 07 May 2007 22:17:06 -0000 Received: from X9342.x.pppool.de (EHLO hmmm.de) [89.59.147.66] by mail.gmx.net (mp010) with SMTP; 08 May 2007 00:17:06 +0200 X-Authenticated: #20477425 X-Provags-ID: V01U2FsdGVkX19S3JUUKQ5S0L58uWWeHUIjfpAXDd/6DIWhtXkHji 6w/Ix3bytsHOBN Date: Tue, 8 May 2007 00:17:06 +0200 From: micha To: caml-list@inria.fr Subject: using camlp4 Message-ID: <20070508001706.32a70243@hmmm.de> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Miltered: at discorde with ID 463FA6F3.005 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 endline:01 lib:01 naming:01 macros:01 define:01 extension:05 extension:05 uses:06 michael:07 classes:08 schemes:09 obj:11 obj:11 hi, I have classes which have many getter/setter methods. At the moment I use two naming schemes intermixed: get_property / set_property and property / set_property and I don't like that very much. I would like to integrate one camlp4 extension which allows to define the getter and setter methods for members, to be able to write: obj#prob <- xxx; print_endline obj#prob; Is this a good idea to integrate camlp4 macros in my project? If someone who might use my lib also uses a camlp4 extension, can this lead to trouble? thanks Michael