[Borges-users] StateHolder II

Eric Hodel drbrain at segment7.net
Thu Apr 29 20:53:06 EDT 2004


??????? ???????? (slepnev_v at rambler.ru) wrote:

> Also, I don't understand why we have to access current_session from 
> the constructor of StateHolder.

The only way a StateHolder can work is when it is attached to a Session.

> Obviously, every StateHolder instance is associated with some session;
> why not make this association explicit, maybe by adding a
> Session#state_holder(contents) method. 

Which would return an object wrapped in a StateHolder? 

> This would be more intuitive for the app developer too. I could do 
> that, if you agree.

I'm not sure.

-- 
Eric Hodel - drbrain at segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/borges-users/attachments/20040429/ea71de11/attachment.bin


More information about the Borges-users mailing list