Sorry if this is a FAQ in the Clos world:
If I define a class or method within an scoped environment such as a
let
the class or method which is generated appears in the global
environment.
Is this correct behaviour? It is certainly convienient for my current
application but I don't want to depend on it as it sounds wrong...
eg:
(let ((foo "bar"))
(define-class <foo-class> () ())
(define-method bar ((self <foo-class>)) foo)
)
(bar (make <foo-class>)) ==> "bar"
Thanks in advance,
--
Mr Andrew Dorrell *
Faculty of Engineering /---\ Whoo? *
University of Technology, Sydney (o o) / *
AUSTRALIA ( : ) .
^ ^
*
Received on Wed Jul 08 1998 - 04:38:57 CEST