On Jun 14, 11:06 am, "Edward K. Ream" <[email protected]> wrote:
> We can, indeed, associate ints with restarters. To repeat, the ints > are keys to restarterDict. The values will be a tuple of information > sufficient to determine whether a restarter already exists in the > dict. Something like the pattern matcher itself and a list of > arguments needed by the restarter. > > BTW, we might bind a **pattern name** as an arg. This would have been > good to do earlier. We would simply have the script that creates the > modes/x.py files include a patternName argument to the pattern > matchers. That would make debugging considerably simpler. I forgot part of my train of thought. The patternName would indicate whether the restarter exists. We might actually fetch the restarter by using patternName as a key into *another* dict that holds the actual restarters. In other words, the patternName is a human- readable form of the args that form the lambda binding. In any event, these are very details. We *can* create restarters, we *can* cache them, and we *can* retrieve them easily using unique int keys. EKR --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
