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.




On Wed, 31 Jan 2007, Per Bothner wrote:

Kjetil S. Matheussen wrote:
Its probably useful in some cases,

I have mixed feelings myself, but one area is typesetting or GUIs, where you might want to say that something is 2cm to the right of something else.

It also is useful for time durations:

(sleep 2s)

but is there any way to turn it off?

Yes - use escape markers:


#|kawa:1|# '\22gg
22gg
#|kawa:2|# '|22gg|
22gg


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)

Its of course not very important, but if you know of a quick hack...


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