This is the mail archive of the kawa@sourceware.org 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: nested inner classes and (this)


On 10/01/2010 11:05 PM, Jamison Hope wrote:
Is there a way yet to refer to the outer class instance from within an
inner class (like
Java's "OuterClass.this" mechanism)? I see the website docs for the
(this) macro say
A planned extension will allow an optional class specifier (needed for
nested clases).

If I'm correctly interpreting thisRef.java and ThisExp.java, that hasn't happened yet. Are there any workarounds?

You could do something like:


(let ((outer-this (this)))
   ... outer-this ...)
--
	--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]