From ... From: Erik Naggum Subject: Re: Runtime class definition without eval? Date: 1999/01/07 Message-ID: <3124683401841045@naggum.no>#1/1 X-Deja-AN: 429724714 References: <770dr4$1hh$1@nnrp1.dejanews.com> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * robert_m_miles@yahoo.com | Is this possible? Say I want my code to take the name `human' from the user | and create a new class named human. I could do | | (eval (list 'defclass user-input inheritance slots-list)) | | which could then be | | (eval (defclass human () ((name :accessor name)))) | | But there probably is a way to get the first arg of defclass to evaluate | to a form or symbol without using eval, right? consider MACROEXPAND and see what DEFCLASS expands into. it should be instructive. #:Erik