[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Object orientation in es, and a bug?



Noah Friedman said

:> Yes, it's a documented bug that closures aren't preserved across es
:> invocations.  That's because when a new shell starts up, it just has a
:> bunch of environment strings with no indication that any of the closures
:> they represent were shared originally.

Yes, but I thought this only applied in cases like

let (shared=....) {
  fn fee ... {...}
  fn fie ... {...}
  fn foe ... {...}
  fn foo ... {...} }

where fee, fie, foe and foo have separate print representations that
must become completely separate in the inferior shell.  But in my case
I had only one global object possessing internal functions, and in
this case I don't understand why what happened _must_ happen.

- Harald