scope for class and method defines

From: Andrew Dorrell <dorrell_at_ihf.uts.edu.au>
Date: Wed, 08 Jul 1998 12:37:14 +1000

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

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST