MetaLink invocation with method returned value
Hi, I would like to trace returned values with MetaLink, but didn't found the correct #arguments: parameter. Here in my example I would like to call aMethodCall:returned: with the return value of aMethodCall: (the method on which the link is installed) (MyObject>>#aMethodCall:) ast link: (MetaLink new metaObject: myObject; control: #after; selector: #aMethodCall:returned: ; arguments: #( arguments object)). object is myObject not the returned value, value does not work, and I didn't found any one working. Does anyone know the correct invocation and can help me ? Many thanks regards, Alain
As far as I know return values for methods are not yet implemented. Iâve talked with Marcus, itâs planned but not the top priority. For now you can all links to the return nodes of a method. Uko
On 25 Feb 2016, at 07:42, Alain Rastoul <alf.mmm.cat@gmail.com> wrote:
Hi,
I would like to trace returned values with MetaLink, but didn't found the correct #arguments: parameter. Here in my example I would like to call aMethodCall:returned: with the return value of aMethodCall: (the method on which the link is installed)
(MyObject>>#aMethodCall:) ast link: (MetaLink new metaObject: myObject; control: #after; selector: #aMethodCall:returned: ; arguments: #( arguments object)).
object is myObject not the returned value, value does not work, and I didn't found any one working.
Does anyone know the correct invocation and can help me ?
Many thanks
regards,
Alain
Hi, yes, this is on the TODO⦠I am last and this week focussed on stabilising Pharo5, I will come back to my backlog of MetaLinks starting next week. Marcus
On 25 Feb 2016, at 07:52, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
As far as I know return values for methods are not yet implemented. Iâve talked with Marcus, itâs planned but not the top priority. For now you can all links to the return nodes of a method.
Uko
On 25 Feb 2016, at 07:42, Alain Rastoul <alf.mmm.cat@gmail.com> wrote:
Hi,
I would like to trace returned values with MetaLink, but didn't found the correct #arguments: parameter. Here in my example I would like to call aMethodCall:returned: with the return value of aMethodCall: (the method on which the link is installed)
(MyObject>>#aMethodCall:) ast link: (MetaLink new metaObject: myObject; control: #after; selector: #aMethodCall:returned: ; arguments: #( arguments object)).
object is myObject not the returned value, value does not work, and I didn't found any one working.
Does anyone know the correct invocation and can help me ?
Many thanks
regards,
Alain
Thank you both for your answers, Great. No emergency for me, it's for a POC about design by contract with annotations I started last year and resumed recently. As it starts working (at least it looks like), I will publish on smalltalkhub soon so others can play with it too, tomorrow, time to finish some tests and at least one readme . Alain On 25/02/2016 09:52, Marcus Denker wrote:
Hi,
yes, this is on the TODO⦠I am last and this week focussed on stabilising Pharo5, I will come back to my backlog of MetaLinks starting next week.
Marcus
On 25 Feb 2016, at 07:52, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
As far as I know return values for methods are not yet implemented. Iâve talked with Marcus, itâs planned but not the top priority. For now you can all links to the return nodes of a method.
Uko
participants (3)
-
Alain Rastoul -
Marcus Denker -
Yuriy Tymchuk