[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make-instance



I have found a couple of CLOS problems with PCL:make-instance

1.  Make-Instance will not take the name of a class only a class:
    (make-instance 'foo) looses and (make-instance (class-named 'foo))
    wins.

2.  Make-Instance does not initialize the instance while Make-FOO
    does:
    <cl> (make-2d-placement)
 
    #S(2D-PLACEMENT ANGLE-OF-ROTATION 0 X-SCALE 1.0 Y-SCALE 1.0 ...)
    <cl> (make-instance (class-named '2d-placement))

    #S(2D-PLACEMENT ANGLE-OF-ROTATION NIL X-SCALE NIL Y-SCALE NIL ...)