ccampbel@bullwinkle.dsd.es.com (Colin Campbell) (06/25/91)
foo
reads as
|foo|
would in the default readtable?
--
Colin Campbell
Evans & Sutherland
Salt Lake City, UT 84108
(801) 582-5847
ccampbel@dsd.es.com
simon@liasun2.epfl.ch (Simon Leinen) (06/25/91)
In article <1991Jun24.224323.8453@dsd.es.com> ccampbel@bullwinkle.dsd.es.com (Colin Campbell) writes: Q: Is there a reasonable way to modify the readtable so that foo reads as |foo| would in the default readtable? That's what X3J13 invented the READTABLE-CASE accessor for. I tried Sun Common Lisp 4.0.1, Symbolics Genera 8.0.2 and Allegro Common Lisp 4.0.1, but none of them implements this function... maybe the vendors manage to vote this useful feature out of the standard. (remember the environment access functions in CLtL 2?) Allegro has a non-standard function EXCL:SET-CASE-MODE which you can use to set the case mode *globally*. I think this was introduced to simplify migration from Franz Lisp, which didn't capitalize symbol names. -- Simon.
barmar@think.com (Barry Margolin) (06/26/91)
In article <SIMON.91Jun25104137@liasun1.epfl.ch> simon@liasun6.epfl.ch writes: >That's what X3J13 invented the READTABLE-CASE accessor for. I tried >Sun Common Lisp 4.0.1, Symbolics Genera 8.0.2 and Allegro Common Lisp >4.0.1, but none of them implements this function... maybe the vendors >manage to vote this useful feature out of the standard. (remember the >environment access functions in CLtL 2?) Nope, it's still in the draft standard. But few of the vendors claim to implement everything in CLtL2, and this is one of the things that they haven't added yet. -- Barry Margolin, Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar