[Borges-users] StateHolder II

Слепнев Владимир slepnev_v at rambler.ru
Mon May 3 03:43:44 EDT 2004


>Even though Session and StateHolder are tightly coupled, it seems
>unnatural to have to ask Session for a StateHolder.  Also, if the
>call to register_for_backtracking is removed from StateHolder, it
>behaves like a handle when created with new, and as a StateHolder 
>when created by Session.

I agree here.

Let me propose yet another way: just like attr_reader and 
attr_accessor, we can make something like a state_holder directive in 
the class definition, which would make sense in subclasses of 
Controller. This is something I would definitely like... it's 
definitely better than constructing a Borges::StateHolder.new and 
accessing the contents all the time.

Vladimir Slepnev


More information about the Borges-users mailing list