-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Lambda form using the new opt&key code
* Add alternative versions of: - compile-user-lambda - rewrite-params-and-body - extended-lambda->lambda - compile-lambda These versions have the Lambda spelled with a capital "L", except for "rewrite-params-and-body", whose alternative version is (temporarily) x:rewrite-params-and-body. The way these new procedures work is this: instead of just passing around the parameter list, they will pass four values: . the parameter list . the optional list . the keyword list . the arity - Add a Lambda special form (capital L), which generates code for the new optional and keyword parameter code. - Document parse-parameter-list and compute-arity a bit more. There are NO functional changes to standard STklos. The changes are only visible when one uses the new Lambda form: (define f (Lambda (a :optional (b 10 b?) :rest r :key c d) (list a b c d r)))
- Loading branch information
1 parent
fa5e8e7
commit bf934dc
Showing
1 changed file
with
171 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters