On Fri, Nov 19, 2004 at 02:46:21PM -0500, [EMAIL PROTECTED] wrote:
> I spent an hour tracking down a bug last night.  Turns out I had 2
> sessions that shared an alias.
> 
> Wouldn't it be a good thing for POE to check and give a warning if someone
> registers an alias that is already given to another session?

alias_set() returns 0 on success, or a nonzero failure indicator:

EEXIST
  The alias already is assigned to a different session.

...

TRACE_RETVALS
  TRACE_RETVALS enables carping whenever a Kernel method is about to
  return an error.  See ASSERT_RETVALS if you would like the Kernel to
  be stricter than this.

-- 
Rocco Caputo - http://poe.perl.org/

Reply via email to