This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.
If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.
Allows evaluating expressions just once.
- (let-once ((IDENTIFIER EXPR) ...) BODY ...)syntax
Binds IDENTIFIER to the result of evaluating EXPR and evaluates BODY. On any subsequent evaluation of the let-once form, the result of EXPR is re-used and evaluation of EXPR is skipped.
- (let*-once ((IDENTIFIER EXPR) ...) BODY ...)syntax
Like let-once, but binds sequentially (just like let*).
This code is placed into the public domain.
- initial release