On Tue, 06 Mar 2001 16:18:10 -0800, Peter Scott wrote:

>POE::Session doco says for _default
>
>   See POE::Session's option() method for information about catching typos.
>
>The option method doco says nothing about this AFAICT.  I believe, from 
>UTSL, that it should say that the option 'default' enables warnings for 
>uncaught events.

You figured it out despite my best attempts at shrouding these
features in undocumented mystery.  I have no recourse but to relent
and document them.  Curses!

Seriously, though, you got it right, and I've updated the docs:

  [...]

  There are three Session options:

  The B<debug> option turns on warnings when states are redefined.  This
  may help catch instances when state definitions overlap.

  Events that are posted to states which don't exist are usually
  discarded quietly if there's no _default safety net to catch them.  It
  can be quite difficult to find misspelled event names when this
  occurs.  The B<default> option will make this condition a fatal
  runtime error, quickly illuminating these errors.  Note, however, that
  it won't help if a _default state has been defined.

  The B<trace> option turns on a runtime trace of dispatched events on a
  per-session basis.  This is often better than turning on
  POE::KERNEL::TRACE_EVENTS since the latter will trace events for every
  session at once.

  =item postback EVENT_NAME, PARAMETER_LIST

  [....]

Thanks!

-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net


Reply via email to