Hi.
Nice trick :)
2016-01-27 20:42 GMT+01:00 stepharo <stepharo@free.fr>:
ATMinimalLearningObject >> addFromObjectSelector: aSelector
�� �� | method |
�� �� method := OpalCompiler new
�� �� �� �� �� �� �� �� �� �� class: self class;
�� �� �� �� �� �� �� �� �� �� source: (Object sourceCodeAt: aSelector);
�� �� �� �� �� �� �� �� �� �� compile.
�� �� self class addSelector: aSelector withMethod: method.
Why compilation is needed?��Is adding copy of method not working?
�� self class addSelector: aSelector withMethod: (Object >> aSelector) copy.