2015-11-17 13:20 GMT+01:00 Peter Uhnák <i.uh...@gmail.com>:

> Thanks!
>
> One more question though: is it possible to somehow reference the method's
> name?
>
> For example I would like to rewrite method
>
> [[[
> navy
> ^ self fromHexString: '000080'
> ]]]
>
> to
>
> [[[
> navy
> ^ ColorRegistry at: #navy ifAbsentPut: [ self fromHexString: '000080' ]
> ]]]
>
> of course for that I would need to know the selector's name...
>
> ^ ColorRegistry at: ``@selector ifAbsentPut: [ self fromHexString:
> ``@color ]
>
> Is it possible?
>

In RBParseTreeRewriter, yes.

Thierry


>
> Peter
>
>
> On Tue, Nov 17, 2015 at 12:58 PM, Mark Rizun <mri...@gmail.com> wrote:
>
>> Hi again, it should work now ;)
>>
>> 2015-11-17 13:40 GMT+02:00 Mark Rizun <mri...@gmail.com>:
>>
>>> Hi Peter!
>>>
>>> In any case if you just remove #hShrinkWrap message sends from
>>> #initializeWidgets, it will only change UI a bit, you will be able to work
>>> with tool.
>>> But soon I'll fix it.
>>> Thanks for reporting :)
>>>
>>> Mark
>>>
>>> 2015-11-17 13:30 GMT+02:00 Peter Uhnák <i.uh...@gmail.com>:
>>>
>>>> Hi,
>>>>
>>>> RewriteTool is not working in latest pharo, complaining about #MNU
>>>> CheckboxMorph>>hShrinkWrap when opening RewriteRuleBrowser, and #MNU
>>>> LabelMorph>>hShrinkWrap for RewriteRuleBuilder.
>>>>
>>>> I am not familiar with Morphic enough and I don't know why the morphs
>>>> are accessed directly from Spec to fix it... so I can only report it. :)
>>>>
>>>> Thanks,
>>>> Peter
>>>>
>>>
>>>
>>
>

Reply via email to