[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue: GET-MACRO-CHARACTER-READTABLE



     ----- Begin Forwarded Messages -----

Return-Path: <@RELAY.CS.NET:yuasa%tutics.tut.junet@UTOKYO-RELAY.CSNET>
Received: from CLI.COM ([10.8.0.62]) by Xerox.COM ; 07 SEP 88 11:54:15 PDT
Received: by CLI.COM (4.0/1); Wed, 7 Sep 88 13:41:37 CDT
Received: from relay2.cs.net by RELAY.CS.NET id ah10518; 7 Sep 88 13:12 EDT
Received: from utokyo-relay by RELAY.CS.NET id bu14361; 7 Sep 88 12:47 EDT
Received: by ccut.cc.u-tokyo.junet (5.51/6.3Junet-1.0/CSNET-JUNET)
	id AA21863; Wed, 7 Sep 88 14:28:15 JST
Received: by nttlab.ntt.jp (3.2/6.2NTT.h) with TCP; Wed, 7 Sep 88 12:29:01 JST
Received: by tutics.tut.junet (ver3.3/6.2J/systemV)
        id AA23442; Wed,  7 Sep 88 12:19:46 jst
Message-Id: <8809071219.AA23442@tutics.tut.junet>
Date: Wed,  7 Sep 88 12:19:46 jst
 From: Taiichi Yuasa <yuasa%tutics.tut.junet@utokyo-relay.CSNET>
To: kcl@CLI.COM
Subject: get-macro-character

KCL does not accept NIL as the readtable argument for GET-MACRO-CHARACTER
and GET-DISPATCH-MACRO-CHARACTER.  This means the only way in KCL to get
information on macro/dispatch-macro characters is to make a copy of the
standard readtable and send it to these functions.
Although CLtL does not explicitly specify these functions should accept NIL
for standard readtable, some examples in CLtL do not work in KCL.
To fix the "bug", replace the statement

	check_type_readtable(&rdtbl);

in the definition of the C functions get_macro_character and get_dispatch_
macro_character in file c/read.d with

	if (rdtbl == Cnil)
		rdtbl = standard_readtable;
	else
		check_type_readtable(&rdtbl);


This bug fix was suggested by Cesar Quiroz on this mailing list.
Thanks Cesar.

-- Taiichi




     ----- End Forwarded Messages -----