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]

SRFI-60


I saw that SRFI-60 was almost there, so I went ahead and implemented the rest of it.  The functions all fall into one of these categories:

1. already provided as a builtin with the same name, so nothing to do

2. already provided as a builtin with a different name, so just add an alias

3. functionality is provided by a similar-name builtin but arguments are reordered or signature otherwise changes slightly, so define a wrapper function and then call the builtin

   3.a. name/signature conflicts with a builtin (this happens exactly once, with logbit?)

4. new function, so implement it


Since there are argument order differences compared to existing numbers.scm procedures, I figure this one should probably require an explicit require/import, so it can go in the gnu.kawa.slib package next to srfi1.scm.  Even so, I wonder whether it might be a good idea to remove the builtin logbit? (which is just an alias for bitwise-set-bit? anyway).

I can make the require.java/ImportFromLibrary.java changes, but since this is a new file I wanted to see if I was on the right track first.

--
Jamison Hope
The PTR Group
www.theptrgroup.com


Attachment: srfi60.scm
Description: Binary data


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