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

[xyzzy:06627] Re: defstruct の :print-function



相沢さん、こんにちは。

	2001年4月11日(水)[20:11:11]の、
	[xyzzy:06625] defstruct の :print-function
	への返事です。

*scratch* で評価しか結果は、readable が non-nil(リーダ
が読める形式、すなわち prin1 や format の ~S の形式) 
でプリントされます。:print-function で出力するには、
princ や format の ~A を使う必要があります。

  (setq a (make-foo :a 1 :b 2 :c 3))
  (princ a)  とか
  (format nil "~a" a)  とか

-- 
亀井哲弥(Tetsuya Kamei)
kamei@xxxxxxxxxxxx

Index Home