Indeed I could but I thought that recompiling I was sure that everything is correct

Le 28/1/16 09:51, Denis Kudriashov a écrit :
Hi.

Nice trick :)

2016-01-27 20:42 GMT+01:00 stepharo <[email protected] <mailto:[email protected]>>:

    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.


Reply via email to