[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dynamic class creation
- To: email@example.com
- Subject: dynamic class creation
- From: firstname.lastname@example.org (herve Blanchon)
- Date: Tue, 25 Feb 92 16:04:01 +0100
My programm have to treat information provided by an orther one. I have to
built an interface between the data I recieve with ACL and the data I want
I receive a plist : (property "NAME")
For each property I want to build a class named NAME-class
A first I built this macro :
(defmacro create-l-class (class-name lexical-unit)
`(defclass ,class-name (l-tree-class)
((LexicalUnit :initform ,lexical-unit))))
This work well if I call (create-l-class NAME-class "NAME")
But I have to produce the symbol NAME-class from "NAME" and also to give
the value of the lexical-unit parameter.
I don't know how this can been done.
I think every information about building dynamic class can be of great
Tanks in advance for your precious answer.
GETA (Groupe d'Etude pour la Traduction Automatique)
BP 53X, 38041 GRENOBLE CEDEX, FRANCE
tel 76 51 43 69