Christophe
Weblog
Wiki
Code
Publications
Music
projects
/
swankr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e35149b
)
support swank:clear-repl-results in swank-presentations
author
Christophe Rhodes
<csr21@cantab.net>
Tue, 31 Aug 2010 08:02:14 +0000
(09:02 +0100)
committer
Christophe Rhodes
<csr21@cantab.net>
Tue, 31 Aug 2010 08:02:14 +0000
(09:02 +0100)
This makes my worry about lacking weak hash tables a bit less
pressing.
swank-presentations.R
patch
|
blob
|
history
diff --git
a/swank-presentations.R
b/swank-presentations.R
index d2ed3f71efe45542bb3454a3fec4a815cd4d987e..0832fafd931b59bcb6177f4b13781d8a9bec4417 100644
(file)
--- a/
swank-presentations.R
+++ b/
swank-presentations.R
@@
-45,3
+45,10
@@
sendReplResultFunction <- presentReplResult
}
}
+`swank:clear-repl-results` <- function(slimeConnection, sldbState) {
+ if(!exists("idToObject", envir=slimeConnection)) {
+ assign("idToObject", new.env(), envir=slimeConnection)
+ }
+ rm(list=ls(slimeConnection$idToObject), envir=slimeConnection$idToObject)
+ TRUE
+}