On Mon, Oct 26, 2009 at 8:53 PM, Luke Paireepinart <[email protected]>wrote:
> > On Mon, Oct 26, 2009 at 7:41 PM, Pawel <[email protected]> wrote: > >> >> Thanks Bruce, >> I had amended another program, reducing it down to what seemed >> minimally required though, as you say, there is likely some redundancy >> left. And optimisations can come after I have _something_ working. >> >> The examples in pyglet tend to use decorators - that I want to avoid. >> I can get my own such programs working no problem but prefer sub- >> classing. > > > Could you expand more on why you don't like decorators? Maybe you should > be using Pygame then? > I *detest* the decorators, because they replace the existing handler, rather than pushing the new handler onto the stack. I can't count the number of times I have inadvertently overwritten another handler by using the decorator syntax - especially when I have initialisers running in unspecified order. -- Tristam MacDonald http://swiftcoder.wordpress.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" 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/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
