In D5B2, the wizard generated the following code for XL_Range:
item: rowIndex columnIndex: columnIndex _: arg3 "Set the 'Item' property of the receiver to the <variant> value of the argument. void Item" self setPropertyId: 170 value: arg3 D4 generates: item: rowIndex columnIndex: columnIndex _: arg3 "Set the 'Item' property of the receiver to the <variant> value of the argument. void Item" self setPropertyId: 170 withArguments: ((Array new: 2) basicAt: 1 put: rowIndex; basicAt: 2 put: columnIndex; yourself) value: arg3 which is correct. sidenote: Is the following still on for D5? On Thu, 20 Dec 2001 17:19:21 -0000, "Blair McGlashan" <[hidden email]> wrote: >In D5 the analyzer will generate the simplest (i.e. no optional parameters) and most >complete (all optional parameters) versions of a method. |
I tracked it down:
!TKindDispatchAnalyzer methodsFor! printRawPropPutBody: anAXMemberDesc name: anAXMethodName on: aPuttableStream "Private - Print the code for accessing the (optionally subscripted) property described by the <AXMemberDesc> argument, onto the <puttableStream> argument, using the most efficient property set method." | argc argumentNames | aPuttableStream nextPutAll: 'self setPropertyId: '; display: anAXMemberDesc memid; space. argc := anAXMethodName size. <snipped> I believe this should be: argc := anAXMethodName keywords size. Still asking about this: >sidenote: Is the following still on for D5? > >On Thu, 20 Dec 2001 17:19:21 -0000, "Blair McGlashan" <[hidden email]> >wrote: > >>In D5 the analyzer will generate the simplest (i.e. no optional parameters) and most >>complete (all optional parameters) versions of a method. On Wed, 03 Apr 2002 00:48:18 -0500, Alan Reider <[hidden email]> wrote: >In D5B2, the wizard generated the following code for XL_Range: > >item: rowIndex columnIndex: columnIndex _: arg3 > "Set the 'Item' property of the receiver to the <variant> value of the >argument. > void Item" > > self setPropertyId: 170 value: arg3 > >D4 generates: > >item: rowIndex columnIndex: columnIndex _: arg3 > "Set the 'Item' property of the receiver to the <variant> value of the >argument. > void Item" > > self setPropertyId: 170 > withArguments: ((Array new: 2) > basicAt: 1 put: rowIndex; > basicAt: 2 put: columnIndex; > yourself) > value: arg3 > >which is correct. > >sidenote: Is the following still on for D5? > >On Thu, 20 Dec 2001 17:19:21 -0000, "Blair McGlashan" <[hidden email]> >wrote: > >>In D5 the analyzer will generate the simplest (i.e. no optional parameters) and most >>complete (all optional parameters) versions of a method. |
In reply to this post by Alan Reider
"Alan Reider" <[hidden email]> wrote in message
news:[hidden email]... > ... > sidenote: Is the following still on for D5? > > On Thu, 20 Dec 2001 17:19:21 -0000, "Blair McGlashan" <[hidden email]> > wrote: > > >In D5 the analyzer will generate the simplest (i.e. no optional parameters) and most > >complete (all optional parameters) versions of a method. It is in D5b3 (or should be). (and thanks for the bug report). Regards Blair |
Free forum by Nabble | Edit this page |