This is the mail archive of the firstname.lastname@example.org mailing list for the guile project.
|Index Nav:||[Date Index] [Subject Index] [Author Index] [Thread Index]|
|Message Nav:||[Date Prev] [Date Next]||[Thread Prev] [Thread Next]|
Mikael Djurfeldt <email@example.com> writes: > 10. An implementation in the *current* Guile interpreter could be: > > i) Add new setter slot to all closures. (Put a pair where the > current procedure properties live. Let the car be the setter > slot and the cdr the property list.) > ii) A <getter-with-setter> is a closure with a non-#f setter slot. And just a note for those who are interested in efficiency: We can set the code and environment pointers of the <getter-with-setter> to the code and environment pointers of the getter, saving one level of procedure call in ((getter G) ...) /mdj