On 20 Mar 2017, at 16:34, denker <marcus.denker@inria.fr> wrote:
Hi,
Here is a slice that implements the #argsAsArray option:
https://pharo.fogbugz.com/f/cases/19857/add-option-argsAsArray
from a speed perspective, the question is if a dictionary makes sense⦠as it would need to be created at runtime.
This test show how to use it: testReifySendArgsAsArray | sendNode instance| sendNode := (ReflectivityExamples>>#exampleMethod) ast body statements first value. link := MetaLink new metaObject: self; selector: #tagExec:; arguments: #(selector context); options: #(argsAsArray). sendNode link: link. self assert: sendNode hasMetalink. self assert: (ReflectivityExamples>>#exampleMethod) class = ReflectiveMethod. self assert: (tag isNil). instance := ReflectivityExamples new . self assert: (instance exampleMethod = 5). self assert: (tag isArray). self assert: (tag first == #+). self assert: (tag second class == Context).