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
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
> * 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
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)
>
> 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
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.
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
>>
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)
>
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)