This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Variable names and symbols starting with a number.


Kjetil S. Matheussen wrote:
Thanks. My main problem was that I couldn't declare variables
starting with a number though:

#|kawa:876|# (define 3d (<3d-vector>))
/dev/stdin:877:1: parameter is neither name nor (name :: type) nor (name default): (3 d$unit)

Same solution - just leave out the quote:


(define |3d| ...)
or:
(define \3d ...)

(display |3d|)
or
(display \3d)
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]