[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] extension of __declare(substitute, "..; ...") syntax
Daniel B. Faken
Re: [Chicken-users] extension of __declare(substitute, "..; ...") syntax?
Thu, 29 Jan 2004 17:45:44 -0500 (EST)
On Thu, 29 Jan 2004, felix wrote:
> Daniel B. Faken wrote:
> > Sorry; I should have pointed out that I didn't want case-insensitivity.
> > For example, I'm leaving the GL constants all caps (and want to do this
> > to help people distinguish btw functions and constants).
> > E.g. (gl-matrix-mode gl-PROJECTION)
> > Also, I just thought people might be interested in more general
> > transformations via the "easy FFI".
> Ah, I see. What would you prefer? How about a user-defined
> transformation function, like:
> __declare(transform, "<REGEX>;<SCHEME-CODE>")
> The <SCHEME-CODE> could evaluate to a procedure that
> will get the result of the match as arguments and returns
> a new string. Would that be acceptable?
Yes, that would be great. Thanks for being amenable to such tiny