This is the mail archive of the kawa@sourceware.cygnus.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: ModuleMethod:numArgs


"Patrick Barta" <patr@jhmi.edu> writes:

> i have some code that switches on the number of arguments in a procedure,

> I thought of checking ModuleMethod:numArgs (), but it returns 4097!

Use minArgs or maxArgs.

(numArgs is one of my questionable ideas - to use a single "virtual
function table slot", instead of two.)
-- 
	--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]