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

Initialize-instance and Franz



Here is a short session of Picasso (Allegro+clx+pcl+picasso). It seems that this
works with lucid but not there. Why?
Francois-Xavier

----

<picasso> (defclass foo ()
             ((bar :reader get-bar
                   :writer set-bar)))

NIL
<picasso> (defmethod initialize-instance :after ((self foo) &rest args)
             (format T "Initializing foo...~%"))

NIL
<picasso> (make-instance 'foo)

<FOO 71342326>
<picasso>

----

;using lucid 3.0 + pcl

> (defclass foo ()
             ((bar :reader get-bar
                   :writer set-bar)))
#<Standard-Class FOO 34420763>
> (defmethod initialize-instance :after ((self foo) &rest args)
             (format T "Initializing foo...~%"))
#<Standard-Method INITIALIZE-INSTANCE :AFTER (FOO) 34745033>
> (make-instance 'foo)
Initializing foo...
#<FOO 34761633>
>