Re: [Pyobjc-dev] Python rather than ObjC for main?
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-08 07:03:29
|
On Friday, November 8, 2002, at 01:59 AM, Ronald Oussoren wrote: > The file register.m could also be made smaller by creating slightly > smarter functions in their that can detect how many arguments they > should have and then ignore any arguments they think to have beyond > the actual amount of arguments. This would allow us to use 1 function > for > (int)aMeth:(int)arg withArg:someId andArg:(char*)foo > and > (int)aMeth:(int)arg > and > (int)doIt > > I'd prefer to wait with either change until after the upcoming release. I completely agree on the timing issue, but wanted to add a detail while it was fresh in my head. We could do exactly what you describe above-- the many arg versions of a method could handle all versions w/fewer args of the same signature as it stands now. The second argument to any ObjC method invocation is always the selector and that selector can be used [directly or indirectly] to determine the # of args intended. b.bum |