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: define-simple-class vs modules


On 01/31/2011 01:43 AM, Colin Fleming wrote:
Hi all,

New question: is there any sort of reflection mechanism which will give
me a list of all the bindings exported by a module?

No, there isn't but perhaps there should be.

I'm working on a scheme editing mode similar to Schemeway,

Interesting - could you tell us more?


this sort of functionality would be very useful.

Traditional reflection is not a great solution for an IDE.


If you have source code, you really want to parse it, so you
can get trees - with line+column information, and references
from uses to definitions.  Kawa should be able to support that,
and the API is reasonably stable.  (It would be better to support
position *ranges*, so for example an IDE can put a squiggle under
an invalid expression.  I've been thinking about this, but haven't
done much, except look at the similar javac interfaces.)

If you don't have source code, then reflection might be appropriate,
but it is still preferable to extract the information from the .class files.
Though one benefit of gnu.bytecode is that it provides the same API
layered on core reflection as for reading from class files.  One could
layer a source-leverl reflection API on gnu.bytecode so it works
with either core reflection or reading class files.
--
	--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]