|
From: | felix |
Subject: | Re: [Chicken-users] extension of __declare(substitute, "..; ...") syntax? |
Date: | Thu, 29 Jan 2004 23:18:39 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 |
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".Daniel
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? cheers, felix
[Prev in Thread] | Current Thread | [Next in Thread] |