Hello,
What is the recommended way to perform complex initialization of object
instances in coops? Say I need to initialize a certain slot based on
the values of other slots in the object. Is the initialize-instance
generic designed in a way that it is safe to do something like this:
(define-method (initialize-instance (o <myobject))
;; initialization code here
)
or is it recommended to write a wrapper function like this:
(define (make-myobject a b c)
(let ((o (make <myobject> 'a a 'b b 'c c)))
;; initialization code here
o))
Or is there a better approaches?
--
John Foerch
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users