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]

Re: case-expression in function position causes error


Per Bothner wrote:
Sven Hartrumpf wrote:
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|#

The warning is correct, if confusing, because you have no else clause.

Actually R5RS sez that the else-clause is optional:


http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-7.html#%25_sec_4.2.1

Jim



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