On Thu Nov 02 17:26:27 2006, MELO wrote:
Show quoted text> Hi,
>
> On Nov 2, 2006, at 4:26 PM, Guillermo Roditi via RT wrote:
>
> > You are correct. At this point I think I am going to change the
> > documentation to match the behavior rather than the other way around
> > because I indeed intended for the callback to have a access to the POE
> > variables. If you have any other suggestions I'll be listening.
>
> hmms... They maybe you could use a postback?
>
> Postbacks are great because they allow me to pass some arguments and
> then complement those with your own arguments.
After sleeping on it, I'm more confident on my recommendation: accept a normal coderef as
the callback paremeter:
1. it's consistent with the docs;
2. it allows people who don't need the POE parameters to use a quick inline sub;
3. if you do need POE parameters, you can pass a postback and they will work to.
So that would be my recomendation.
In fact, the code I sent you does all three points: if you pass a postback, it will also work.
Do you want me to send you a proper diff with docs?
Thanks,