From ... From: Erik Naggum Subject: Re: Are there "constructors" in CLOS? Date: 2000/12/07 Message-ID: <3185182937784233@naggum.net>#1/1 X-Deja-AN: 702153720 References: <3A2E75AD.AD48E13A@ilt.fhg.de> <87ofyo1uln.fsf@asaka.latnet.lv> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 976195022 17003 195.0.192.66 (7 Dec 2000 13:17:02 GMT) Organization: Naggum Software; vox: +47 800 35477; gsm: +47 93 256 360; fax: +47 93 270 868; http://naggum.no; http://naggum.net User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Mime-Version: 1.0 NNTP-Posting-Date: 7 Dec 2000 13:17:02 GMT Newsgroups: comp.lang.lisp * Janis Dzerins | Common Lisp allows one to put hyphens (not underscores) in symbols, | and that's what others are doing. Actually, underscores are OK, too. Any character is allowed with a backslash before it or with the whole symbol quoted with ||, but you don't need that unless the character is a terminating macro character in the current readtable. Avoid '";,() and you're pretty much safe, unless you try to use # at the beginning of a symbol -- that would mean something else. This wide-open freedom to name symbols anything is not abused as much as the freedom to abuse case distinctions is. | BTW, reader GETF and writer SETF for LENS are symbols in COMMON-LISP | package so your compiler should signal an error (unless you're using | ACL 6.0 in "modern" mode). Good catch, and a case of abuse of case distinctions if you ask me. #:Erik -- "When you are having a bad day and it seems like everybody is trying to piss you off, remember that it takes 42 muscles to produce a frown, but only 4 muscles to work the trigger of a good sniper rifle." -- Unknown