On Mon, Sep 22, 2003 at 03:40:17PM -0500, Alan Hastings wrote: > > > > -----Original Message----- > > From: Rocco Caputo [mailto:[EMAIL PROTECTED] > > Sent: Monday, September 22, 2003 2:45 PM > > To: '[EMAIL PROTECTED]' > > Subject: Re: Session state registration > > > > Session's register_state() method is quasi-public. It's got a public > > name (no leading underscore), but it's not documented. Rather, it's > > published through Kernel's state() method, which acts on "the current > > session". That's documented in POE::Kernel. > > > > This is encapsulation through obfuscation. :) > > It's almost there... The kernel->state() method has no provision for > removing a state, as far as I can tell. In fact it takes pains to assure > that the handler is set before calling the session->register_state(). Is > that because there are issues with removing active states?
No, not at all. If $kernel->state(state_name => undef) doesn't work, then it's against the comments and documentation. Could you provide a test case? -- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
