Subject: Re: GCL vs. CLISP
From: rpw3@rpw3.org (Rob Warnock)
Date: Thu, 05 Aug 2004 23:40:23 -0500
Newsgroups: comp.lang.lisp
Message-ID: <c-adnWfZw_8qlo7cRVn-tg@speakeasy.net>
Camm Maguire  <camm@enhanced.com> wrote:
+---------------
| todd_pierce@hotmail.com (Todd Pierce) writes:
| > I'd like to have access to X-windows through Lisp. Apparently the two
| > packages use XGCL and CLX respectively. How do they stand with respect
| > to CLOS? Must it be present?
| 
| xgcl does not require clos.  I believe clx does.
+---------------

Not according to the CLX sources distributed with CMUCL. Looking in
routine "depdefs.lisp", one finds the following code which decides
whether to use CLOS or not, and if so, for which types:

    (eval-when (eval compile load)
      (defvar *def-clx-class-use-defclass*
	#+(and cmu pcl) '(XLIB:DRAWABLE XLIB:WINDOW XLIB:PIXMAP)
	#+(and cmu (not pcl)) nil
	#-(or  cmu) nil
	"Controls whether DEF-CLX-CLASS uses DEFCLASS.  
	 If it is a list, it is interpreted by DEF-CLX-CLASS to be a
	 list of type names for which DEFCLASS should be used. 
	 If it is not a list, then DEFCLASS is always used.
	 If it is NIL, then DEFCLASS is never used, since NIL is the
	 empty list."))


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607