[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

records all have same internal-name

This page is part of the web mail archives of SRFI 57 from before July 7th, 2015. The new archives for SRFI 57 contain all messages, not just those from before July 7th, 2015.



I'm trying to get the srfi-57 implementation through the
Kawa implementation.  One issue is the invocation of
srfi-9:define-record-type always creates a primitive
record type named "internal-name".  This is unfortunate.
The Kawa implementation of srfi-9 maps each define-record-type
to a new simple Java class, with the same name as the
Scheme type (after mapping Scheme names to valid Java
identifiers).  I could change Kawa to generate a artificial
class name, perhaps making use of a sequence number, ut
I really don't want to do that, it shouldn't be needed.
The <record/scheme type definition> includes a <type name>
and I really want to use that name to generate a Java name.

I am also getting a *lot* of srfi-9:define-record-types
created - 389 classes generated (at run-time rather than
compile-time) for the trivial 'point' example.
I'm hoping these are due to bugs in Kawa's macro
expansion:  So far the reference iplementation has been
useful to stress-test and find bugs in Kawa's macro handling!
--
	--Per Bothner
per@xxxxxxxxxxx   http://per.bothner.com/