English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
using camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-07 (22:23)
From: micha <micha-1@f...>
Subject: using camlp4

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?