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

stupid zetalisp question about /

    Date: Mon, 1 Jul 1991 20:53 EDT
    From: York@CHUCK-JONES.west.dialnet.ila.com (William M. York)

	Date: Mon, 1 Jul 91 17:18:10 -0600
	From: drstrip@cs.sandia.gov (David R. Strip)

	I am trying to create the string "/*" (*comment-begin* for
	c-mode) in a function defined in a file with zetalisp syntax.
	Needless to say if you type "/*", the string is really "*". 
	What I don't understand is why "//*" is "//*" instead of
	"/*". So, how do I get what I want?

    You already have what you want.  The string contains "/*", but it
    prints as "//*" because that's what the reader needs to see in order
    to read it back in.  Print out the variable (or disassemble the
    function definition or something) in a CL-syntax environment and you
    will see it as "/*".

Also, if you just want to see what characters are in a string, without
slashification, you can use PRINC (format's "~A") instead of PRIN1 or
PRINT (format's "~S").