Hi.

As continue to Marcus cool features around haltOnce I implement analogue of
Dolphin ##() syntax.
Slice is inbox (18768
<https://pharo.fogbugz.com/f/cases/18768/Inlined-method-const-could-be-implemented-by-metalinks>).
So it will be available soon.

Idea is to send message #asMethodConst to result of expression which you
want to cache. At first call it will replace full message send node with
result as literal. And following method call will use this precomputed
value.

You can read details in my blog
http://dionisiydk.blogspot.fr/2016/07/magic-with-pharo-reflectivity.html.

Best regards,
Denis

Reply via email to