This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
define-constant: incorrect compilation
- From: Vladimir Tsichevski <wowa1 at online dot ru>
- To: kawa at sources dot redhat dot com
- Date: Sat, 29 Mar 2003 21:20:28 +0300
- Subject: define-constant: incorrect compilation
- Organization: Jet
- Reply-to: wowa1 at online dot ru
Hi,
file bug.scm containing the only line:
(define-constant theConstant 'theValue)
compiles as:
public class bug extends ModuleBody
{
public static final Object theConstant;
public int numArgs() {
return 0;
}
public final void apply(CallContext $ctx) {
gnu.lists.Consumer $result = $ctx.consumer;
}
}
as you may see, the variable theConstant is NOT initialised with
"theValue" string as it should be.
note: if you modify the declaration so it has type specifier, i.e:
(define-constant theConstant :: <String> 'theValue)
then it compiles correctly.
Regards,
Vladimir