This is the mail archive of the kawa@sources.redhat.com 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]

case-expression in function position causes error


Hi all.

A case-expression in a function position causes errors like this:

> kawa ; current CVS version
#|kawa:1|# (load "kawabug3.scm")
kawabug3.scm:2:4: warning - cannot convert literal (of type gnu.mapping.Values) to gnu.mapping.Procedure
#|kawa:2|# 

kawabug3.scm:
(define main (lambda (id a b)
  ((case id
     ((plus) +)
     ((minus) -)
     ((times) *))
   a b)))

(main 'plus 2 3)

Ciao
Sven


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