On Tue, Sep 30, 2008 at 10:33 AM, zpcspm <[EMAIL PROTECTED]> wrote: > I have tried to refactor this example to make the function return the > user input instead of printing it.
> I was surprised to discover that this doesn't work. It has no chance of working. You can't call this function to get a value. But your customized function can a) do things in the final state or b) set a value in the final state. In other words, the rest of your script will be part of the final state. Naturally, the final state can call a helper function to keep the state machine clean. HTH. Edward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
