Hi Eric,
thank you. Actually I was already using unsyntax for putting the default
values in optional arguments list and didn't recognize that I can use
anything from the scribble API at that point. Now the formatting of
default values is simple and yields expected results. In my case:
(()
((argb #,(racketvalfont (format "#x~x" (arithmetic-shift alpha-max
24))))))
This is really cool.
However, for the contract part, I think the only solution would be
adding a parameter that would change the behavior of
proc-doc-transformer and proc-doc/names transformer or more generally
add support to *defproc's do-one' arg-contracts handling code.
This basically goes down to racketblock0 rendering of numbers.
I am afraid that this needs some with more experience with scribble
internals to implement. I think that adding parameter to configure the
rendering of numbers inside define-code-like forms will be rather easy.
But how to parameterize in provide block and not mess with any of those
proc-doc*transformer code is currently beyond my understanding.
I would appreciate any hints though.
Cheers,
Dominik
> <mailto:
racket-users%2Bunsu...@googlegroups.com>.