This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: castomizable 'as'?
- From: Per Bothner <per at bothner dot com>
- To: Yaroslav Kavenchuk <kavenchuk at gmail dot com>
- Cc: kawa <kawa at sourceware dot org>
- Date: Fri, 22 Feb 2008 21:20:20 -0800
- Subject: Re: castomizable 'as'?
- References: <47BEAE8F.6000505@gmail.com>
Yaroslav Kavenchuk wrote:
It is possible?
And not for new classes - for classes from other libraries?
It's possible, but complicated to explain.
You need to define a custom "Type" object.
Look at the getTypeFor(Class) method in kawa.standard.Scheme.
That won't tell you what do do, but it will point you
to examples.
--
--Per Bothner
per@bothner.com http://per.bothner.com/