Hello dear all,
while trying to port Alex Shinn's fmt to blackhole (not finished yet) i faced some difficulties resulting in the attached patch. I am neither familiar with black hole nor with the subleties of gambit. I hope this is the right place for discussion. The Black-Hole page seems to be unreachable for several days now.
let-optionals: the hunk addressing optionals changes ,,body ...'' in
(let-optionals* arglst ((var default) ...) body ...)
to be wrapped into a let-form instead of a begin-form. This is what fmt seems to expect as the body starts with define-expressions leading to a complaint of gambit about misplaced expressions.
Of course i could modify the fmt code to solve the problem at hand. But as the code seems to be working on other schemes it might be what other schemers expect. At least i don't see any drawbacks from doing so. As the begin-expresion will be wrapped into an outer let-expression anyway this modification should be completely transparent besides the gain expressive freedom.
srfi/13 string-index: The result of an argument sanity check was passed along instead of the checked argument itself.
srfi/13 char-cased char-titlecase: These are quick hacks. I didn't find them defined anywhere. Not sure whether this actually led to an error or not.
srfi/14 char-set?: Black hole seems not to deal correctly with define-record-type. Instead of fixing the cause, i decided to provide this quick hack for the apparent problem of not exporting ,,char-set?''.
Bye Tara
Afficher les réponses par date