wheineman / nrpl

Nim REPL
MIT License
56 stars 9 forks source link

only persist declarations, not statements #19

Open timotheecour opened 6 years ago

timotheecour commented 6 years ago

nrpltmp.nim:

proc foo()=echo "bar" 
foo() #should not persist
for i in 0..2: foo() #should not persist

import times
let time1=1
echo 1, "asdf"  #last entry, won't be persisted (ok)