diff options
| author | 2025-04-14 17:26:07 -0400 | |
|---|---|---|
| committer | 2025-04-14 17:26:07 -0400 | |
| commit | 9fb01a9a637c2e66af4cc94df7fedb0323037c1e (patch) | |
| tree | 6653f779eb707c7ce849b5adfbf515249b92d8ff /README.md | |
| parent | add release (diff) | |
add lambda/this
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -10,3 +10,24 @@ Notable features: This is the first time I've written low-level CHICKEN code: use at your own risk. + +## Usage + +Import `(srfi 259)` for only the standard bindings. Import +`(srfi 259 extensions)` for the SRFI-259 macro and the extensions +described below. + +## Extensions + +This library implements lambdas with object scope. + + (lambda/this this formal body ...) + +Create a procedure such that `this` will be bound to the current +procedure. When a new procedure is created using a tag constructor, +`this` will point to the new procedure, not to the old procedure. This +allows for a procedure to inspect its own tags. + + (procedure/this? obj) + +Returns true if `obj` is a procedure created using `lambda/this`. |
