This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: How to define constructors for classes defined using define-simple-class
- From: S D <s dot mailinglists at gmail dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Wed, 30 Mar 2005 15:40:44 -0800
- Subject: Re: How to define constructors for classes defined using define-simple-class
- References: <301e20f60503272330482cff2c@mail.gmail.com> <4247B59C.7070003@bothner.com>
- Reply-to: S D <s dot mailinglists at gmail dot com>
Will this be addressed in the future? Or is there any technical
limitation in generating constructor byte code? Also, it doesn't seem
to be possible to overload a method with different sets of parameters
(I think the last definition definition is the one that is being
created).
On Sun, 27 Mar 2005 23:43:24 -0800, Per Bothner <per@bothner.com> wrote:
> S D wrote:
> > But if I want to write a class using define-simple-class that inherits
> > a class with no default constructor, then I have to similarly define a
> > constructor which takes arguments and pass them to the parent class's
> > constructor.
>
> Yep, it's a problem. For now, you may have to write a Java
> intermediary. Calling non-default super-class constructors
> is an important lack.
> --
> --Per Bothner
> per@bothner.com http://per.bothner.com/
>