Understanding saveimage


#1

Reading the code, saveimage function[1] is keeping more than the form it got as an argument, it also saves GlobalEnv and tee.
I have two questions:

  1. why is GlobalEnv required? I understand that in the general case, the form might use a predefined var, but if it’s not the case is a waste of precious space
  2. what is tee and what it is used for?

Thanks
Tzach

[1] https://github.com/technoblogy/ulisp/blob/master/ulisp.ino#L281


#2

Hi Tzach,

You might find the answer here:

http://www.ulisp.com/show?1DTL

If not, ask again and I’ll try and explain it a bit more.