[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Special variables to relax boxing
From: |
Stefan Israelsson Tampe |
Subject: |
Special variables to relax boxing |
Date: |
Tue, 19 Mar 2013 23:05:52 +0100 |
User-agent: |
KMail/4.9.5 (Linux/3.5.0-25-generic; KDE/4.9.5; x86_64; ; ) |
Hi,
I wouldl like to start a discussion of introducing a way to mark
variables as special, and by that mean that set! variables does not
nessesary get boxed. This is a deviation from the scheme standard but
it's pretty useful if one want to set! local variables but make sure
that the state of the function can be stored in a continuation and
later restart at the same state.
This patch introduces a macro (mark-as-special var), this will mark
var as a special variable in the above meaning, please look at the
example in special.scm for more info.
There is a preleminary patch following the document against stable-2.0
that we can use as a discussion point for know about this feature.
Best Greetings
Stefan
special.scm
Description: Text Data
special.diff
Description: Text Data
- Special variables to relax boxing,
Stefan Israelsson Tampe <=
- Re: Special variables to relax boxing, Mark H Weaver, 2013/03/21
- Re: Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/21
- Re: Special variables to relax boxing, Mark H Weaver, 2013/03/21
- Re: Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/21
- Re: Special variables to relax boxing, Noah Lavine, 2013/03/21
- Re: Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/22
- Re: Special variables to relax boxing, Daniel Hartwig, 2013/03/22
- Re: Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/23