At 07:25 PM 4/27/2007 +1200, Greg Ewing wrote: >Talin wrote: > > > I kind of wonder about the idea of implementing generic functions using > > generic functions. > >I'd be worried about efficiency. Generic functions on >top of generic functions sounds like you would have two >layers of dynamic lookup to go through instead of one.
No, it only affects method addition and index updating (which only occurs when new types are encountered or new methods are added). You don't need the generic functions in order to dispatch generic functions, only to build the dispatch tables. _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com