IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New In the spirit of net
What other contexts are known to a given context? In the stack model, a frame knows its parent, and that's all. What other connections are set up?
--

Less Is More. In my book, About Face, I introduce over 50 powerful design axioms. This is one of them.

--Alan Cooper. The Inmates Are Running the Asylum
New Re: In the spirit of net
What other connections are set up?

When a closure is created, any variables in the local scope that are referenced by the closure must exist for the life of the closure. For example (Ruby follows) ...
  def make_counter\n    n = 0\n    proc { n += 1; n }\n  end\n\n  c = make_counter\n\n  p c.call   # => 1\n  p c.call   # => 2
The context containing "n" must be kept around after "make_counter" exits, because the proc (closure) references and modifies n.
--
-- Jim Weirich jweirich@one.net [link|http://onestepback.org|http://onestepback.org]
---------------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
     68k Smalltalk - (deSitter) - (10)
         You might port PocketSmalltalk - (tuberculosis)
         Something else that might interest you - (tuberculosis) - (5)
             Outstanding - thanks -NT - (deSitter)
             Could you explain? - (Arkadiy) - (3)
                 Its not exactly a "stack" - (tuberculosis) - (2)
                     In the spirit of net - (Arkadiy) - (1)
                         Re: In the spirit of net - (JimWeirich)
         Little Smalltalk - (JayMehaffey) - (2)
             Oooh yeah forgot that one - there's a book too. - (tuberculosis) - (1)
                 I have that! - (static)

GOPHERS, not GOLFERS!
49 ms