This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: case-expression in function position causes error
- From: Per Bothner <per at bothner dot com>
- To: Sven Hartrumpf <Sven dot Hartrumpf at FernUni-Hagen dot de>
- Cc: kawa at sources dot redhat dot com
- Date: Fri, 23 May 2003 07:57:34 -0700
- Subject: Re: case-expression in function position causes error
- References: <20030523.093119.74735950.Sven.Hartrumpf@FernUni-Hagen.de>
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.
I changed the error message in this case to the following.
Would that make it easier to understand the message?
kawabig3.scm:2:10: warning - cannot convert void to gnu.mapping.Procedure
--
--Per Bothner
per@bothner.com http://per.bothner.com/