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: Defining Java Classes in Kawa


David O'Callaghan wrote:

Would invoke-special work even for constructors (assuming that it's
possible to define them)? Something like:

(invoke-special <SUPERCLASS> (this) '<init> ARG ...)

Or if we decide on "new":


(invoke-special <SUPERCLASS> (this) 'new ARG ...)

We could make it work.

That's basically what the Java compiler does:  Translate
this(ARGS) or super(ARGS) to an invokespecial instruction.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


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