Search found 2 matches
- Wed Nov 25, 2009 12:58 am
- Forum: Common Lisp
- Topic: make-instance in defconstant
- Replies: 3
- Views: 4956
Re: make-instance in defconstant
Thanks for the quick reply. My suggestion would be to put class definitions in a different file than DEFCONSTANT. I thought about doing this, but I only considered having a single constants file, which would have a circular dependency problem (i.e. normally the constants file would be the file all o...
- Mon Nov 23, 2009 3:06 am
- Forum: Common Lisp
- Topic: make-instance in defconstant
- Replies: 3
- Views: 4956
make-instance in defconstant
Hello, I need to set a constant to be one instance of a class, but when I use: (defconstant +html-view+ (make-instance 'html-view)) the compile fails with "no such class 'html-view" (compiled in slime via load-system). I can fix this by slapping an eval-when around the defclass call, but t...