Subject: Re: Obtaining the case preserved name of a macro
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1998/12/01
Newsgroups: comp.lang.lisp
Message-ID: <73vm3u$f6df1@fido.engr.sgi.com>
Thomas A. Russ <tar@sevak.isi.edu> wrote:
+---------------
| Marco Antoniotti <marcoxa@copernico.parades.rm.cnr.it> writes:
|  > Raymond Wiker <raymond@orion.no> writes:
|  > > 	How about entering the name as a string instead of a symbol, or
|  > > escaping the symbol?
|  > > 	E.g, (defexternal "FuncWithMixedCase" ...)
|  > > 	or   (defexternal |FuncWithMixedCase| ...)
|  > 
|  > That would not work either.  You'd have to call the macro using that
|  > symbol.
|  > 	(|FuncWithMixedCase| .....)
|  > Not pretty.
| 
| Of course, one could just modify the macro itself to compute the name
| that you call from lisp to be the one with the name in uppercase.
+---------------

Even better, the macro could invoke (at compile time, of course)
a routine that converted the external name to *whatever* your
preferred Lisp name was, with rules as complicated as you like,
e.g. (defexternal |XtGetMultiClickTime| ...) could define a Lisp
name of external::xt-get-multi-click-time, or whatever.


-Rob

-----
Rob Warnock, 8L-855		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
2011 N. Shoreline Blvd.		FAX: 650-964-0811
Mountain View, CA  94043	PP-ASEL-IA