Re: [pro] macros expanding to defclass + some mop code

2010-12-31 Thread Daniel Weinreb
On 12/30/10 2:12 PM, Pascal Costanza wrote: > The solution I proposed last avoids that by having exactly one class > definition. However, such cases are unlikely to occur in practice, so > this is likely just an academic exercise. Nevertheless, I think it's > important to mention this I agree th

Re: [pro] macros expanding to defclass + some mop code

2010-12-30 Thread Pascal Costanza
On 30 Dec 2010, at 01:05, Sam Steingold wrote: >> * Pascal Costanza [2010-12-29 >> 21:37:44 +0100]: >> >> Just to be complete, I insist that the 'right' way to do this is to do >> this at runtime. > > I found Martin's solution - moving the MOP code into an outside macro, > thus moving the MOP

Re: [pro] macros expanding to defclass + some mop code

2010-12-30 Thread Sam Steingold
> * Pascal Costanza [2010-12-29 > 21:37:44 +0100]: > > Just to be complete, I insist that the 'right' way to do this is to do > this at runtime. I found Martin's solution - moving the MOP code into an outside macro, thus moving the MOP function calls from read time to macroexpansion time - to be

Re: [pro] macros expanding to defclass + some mop code

2010-12-29 Thread Pascal Costanza
On 27 Dec 2010, at 04:37, Sam Steingold wrote: > Hi, > I want to write a macro which would expand to a defclass + some code > which uses the resulting class object using mop. > e.g. (untested), > (defmacro deffoo (class slots) > `(progn > (defclass ,class () ,slots) > (defun foo (x) >

Re: [pro] macros expanding to defclass + some mop code

2010-12-27 Thread Martin Simmons
> On Mon, 27 Dec 2010 09:28:48 -0500, Sam Steingold said: > > On Mon, Dec 27, 2010 at 2:02 AM, Pascal Costanza wrote: > > On 27 Dec 2010, at 04:37, Sam Steingold wrote: > >> I want to write a macro which would expand to a defclass + some code > >> which uses the resulting class object using m

Re: [pro] macros expanding to defclass + some mop code

2010-12-27 Thread Alessio Stalla
On Mon, Dec 27, 2010 at 3:28 PM, Sam Steingold wrote: > On Mon, Dec 27, 2010 at 2:02 AM, Pascal Costanza wrote: >> On 27 Dec 2010, at 04:37, Sam Steingold wrote: >>> I want to write a macro which would expand to a defclass + some code >>> which uses the resulting class object using mop. >>> e.g.

Re: [pro] macros expanding to defclass + some mop code

2010-12-27 Thread Sam Steingold
On Mon, Dec 27, 2010 at 2:02 AM, Pascal Costanza wrote: > On 27 Dec 2010, at 04:37, Sam Steingold wrote: >> I want to write a macro which would expand to a defclass + some code >> which uses the resulting class object using mop. >> e.g. (untested), >> (defmacro deffoo (class slots) >>  `(progn >>

Re: [pro] macros expanding to defclass + some mop code

2010-12-26 Thread Pascal Costanza
On 27 Dec 2010, at 04:37, Sam Steingold wrote: > Hi, > I want to write a macro which would expand to a defclass + some code > which uses the resulting class object using mop. > e.g. (untested), > (defmacro deffoo (class slots) > `(progn > (defclass ,class () ,slots) > (defun foo (x) >

[pro] macros expanding to defclass + some mop code

2010-12-26 Thread Sam Steingold
Hi, I want to write a macro which would expand to a defclass + some code which uses the resulting class object using mop. e.g. (untested), (defmacro deffoo (class slots) `(progn (defclass ,class () ,slots) (defun foo (x) (list ,@(mapcar (lambda (ds)