chibi-scheme icon indicating copy to clipboard operation
chibi-scheme copied to clipboard

Document API arguments

Open GoogleCodeExporter opened this issue 10 years ago • 3 comments

I've just been confused by the API sexp_string_ref procedure. I'd assumed it 
would take a Scheme string and a C integer as an argument, and return a C 
integer. Nope. I had to grep the source code to figure out that it takes a 
Scheme string and a Scheme fixnum and returns a Scheme character (which is a 
pretty odd way of accessing bytes in UTF-8 string). Can you document the 
argument types for this and other similar functions? Thanks.

Original issue reported on code.google.com by [email protected] on 20 Jul 2013 at 12:04

GoogleCodeExporter avatar Mar 16 '15 12:03 GoogleCodeExporter

Original comment by [email protected] on 20 Jul 2013 at 1:43

  • Changed state: Accepted

GoogleCodeExporter avatar Mar 16 '15 12:03 GoogleCodeExporter

I've addressed this for strings, but will leave the bug open and review
other sections before making a release.

Original comment by [email protected] on 21 Jul 2013 at 6:10

GoogleCodeExporter avatar Mar 16 '15 12:03 GoogleCodeExporter

Thanks.

Original comment by [email protected] on 21 Jul 2013 at 12:03

GoogleCodeExporter avatar Mar 16 '15 12:03 GoogleCodeExporter