Out of curiousity, how do you ensure singleton-ness of the LeoApp class? I didn't see anything special precautions in the class definition.
On Sunday, May 10, 2015 at 1:10:43 PM UTC-4, Edward K. Ream wrote: > > On Sunday, May 10, 2015 at 11:51:23 AM UTC-5, Edward K. Ream wrote: > > *> *g.cmd_instance_dict..is Leo's Rosetta Stone! > > The implications keep getting more interesting. > > 1. This dict is independent of packaging! The classes mentioned in the > dict may be defined in any module. > > 2. Classes containing commands need not be singletons. And a good thing > too: Leo's only singleton class is the LeoApp class, g.app. > > 3. This dict can and should include *all *of Leo's classes. It should be > named something like g.global_instance_dict. > > EKR > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
