[cmucl-imp] Re: Compiled COMPILE forms at load time Bug

Raymond Toy toy.raymond at gmail.com
Tue Mar 16 14:11:05 CET 2010


On 3/16/10 7:43 AM, Helmut Eller wrote:
> * Raymond Toy [2010-03-16 04:41+0100] writes:
>
>   
>> I tried undefine-function-name instead of undefine-structure. It works,
>> but having a redefined structure accessor that doesn't really work is a
>> problem.  For example,
>>
>> (defstruct abc a)
>> (defun abc-a (x) 42)
>> (make-abc :a 'a) -> #S(abc :a 42)
>>     
> Another funny case is this one:
>
> (defstruct abc a)
> (setf (fdefinition 'abc-a) (lambda (x) 42))
> (abc-a nil) => 42
> (defstruct abc b)
> (abc-a nil) -> abc-a not defined
>
>   
I think this is ok.  Redefining a struct is undefined, IIRC, so we have
some leeway.  I think we should just leave it this way.

Ray





More information about the cmucl-imp mailing list