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]

Re: generic procedures


Marco Vezzoli <marco.vezzoli@st.com> writes:

> do procedures defined with make-procedure dispatch to the actual methods
> using only ariety?

Yes and no.  The problem is not make-procedure, which does make a
GenericProc which can dispatch on argument types.  The problem is the
individual lambda expression which does not implement the 'match'
operation, except to the extent of check that the parameters are
correct.  See the FIX for match in ModuleMethod,java.

Alternatively, it should be possible to implement getParameterType.

It doesn't seem like I will have time to implement this anytime soon.

As a consolation, I did implement define-class and define-simple-class
forms recently.  I'm working on some testcases and it looks like at
least define-simple-class is usable at this point, though documentation
is missing.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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