This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
using (this) in object: wrong result of compilation
- From: Vladimir Tsichevski <wowa at jet dot msk dot su>
- To: Kawa List <kawa at sources dot redhat dot com>
- Date: Thu, 24 Apr 2003 16:08:36 +0400
- Subject: using (this) in object: wrong result of compilation
Hi,
this compiles to wrong code:
(object () ((bugMethod v) (let ((n v) (r (this))) (display n))))
Result is
public class bug$object
{
public Object bugMethod(Object v) {
Object object = v;
Object n = this;
return Scheme.displayFormat.apply1(n);
}
}
as seen in this listing, the (this) value is passed to (display) instead
of the value of v
Regards,
Vladimir