Re: [Pyobjc-dev] Question about method name mangling
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2003-05-08 08:25:32
|
On woensdag, mei 7, 2003, at 19:19 Europe/Amsterdam, Zachery Bir wrote: > In "Writing the Code - Step 8." we explain after the fact that we > won't be doing the name mangling. This seems awkward. Since the code > works with the name mangling, is there any reason not to go ahead with > it? > > class Converter(NibClassBuilder.AutoBaseClass): > # the actual base class is NSObject > > def convertAmount_atRate_(self, amt, rate): > return amt * rate > > Other than that, the tutorial is excellent! Kudos to all involved. I explicitly didn't do name mangling here to explain this point: that you don't have to use it your method is only going to be used from Python. But if more people feel that this is obscure I can take it out... -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |