On Mon, Apr 02, 2001 at 12:21:35AM +0200, Torvald Riegel wrote:
>
> what do you think about some sort of automatic postbacks? a third type of
> generating an event, which would be posted to the target session. the
> associated state's return value would be returned to a postback that is
> specified when sending the first event. so one would use something like
> $kernel->postandreply($target, $event, $self->postback(...), @args)
> advantages would be that the target session would not need to care about
> handling postbacks and returning values through them. one more function would
> have to be maintained and postacks would need to be kept somewhere at the
> event's structures. garbage collection shouldn't be a problem since
> the postback would be a normal parameter otherwise.
> really good would be if this return-postback could be set as another state's
> return-postback. so if user() would postandreply server() but server() would
> have to call worker(), the postback could be handed over to worker() and it
> would reply through the postback. this would only be a variation of
> postandreply i think.
> i know everything could be done using postbacks given as state arguments, but
> the above would make returning values simple and easier to read at the
> server() side.


Others have wondered about something similar, so I've added this to
the TODO file.

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

Reply via email to