2

How do I make Allegro Lisp case sensitive. I've tried the following

(setf (readtable-case rt) :default)

but it doesn't work.

user2864740
  • 60,010
  • 15
  • 145
  • 220
Lime
  • 13,400
  • 11
  • 56
  • 88

1 Answers1

1

So it appears the docs are wrong but this appears to work I think.

(setf (readtable-case *readtable*) :invert)
Lime
  • 13,400
  • 11
  • 56
  • 88
  • 2
    What docs are wrong? You didn't link to any docs. :default isn't a standard value for readtable case, but :invert is. They're all listed in [the documentation](http://www.lispworks.com/documentation/lw50/CLHS/Body/f_rdtabl.htm). – Joshua Taylor Oct 11 '15 at 01:19
  • Maybe you were talking about [Allegro's documentation](http://franz.com/support/documentation/current/doc/case.htm), but note that that says about using :default, "If you have used setf to modify a readtable's readtable-case to one of the ANSI-specified settings, then that readtable's readtable-case is not changed by subsequent calls to set-case-mode unless/until that readtable-case is set to :default." So :default only has special meaning in conjunction with Allegro's set-case-mode. You haven't told us whether you did anything with set-case-mode or not. – Joshua Taylor Oct 11 '15 at 01:19
  • @JoshuaTaylor Yes it appears they are not technically wrong but they didn't really post a working example. I don't understand the quoted sentence at all. – Lime Oct 11 '15 at 01:36
  • There's interaction between another allegro function (set-case-mode)and read table case. If you set read table case explicitly, then set-case-mode doesn't have effect unless you set read table case to (the non-standard) value :default. – Joshua Taylor Oct 11 '15 at 01:53