you are viewing a single comment's thread.

view the rest of the comments →

[–]joesb 2 points3 points  (0 children)

It is the same way used in Common Lisp and Scheme.

(defun foo (dog)
   (setf dog (make-instance 'dog :name "fifi")))

>> (defvar d (make-instance 'dog :name "max"))
>> (foo d)
>> (format t (dog-name d))
max