On 7 août 2014, at 16:15, Sean P. DeNigris <sean@clipperadams.com> wrote:
camille teruel wrote
I hope for comments
How do you activate it? I loaded into #40160, and copied your snippets from the post, but when I did "MyClass new senderMethod", no debugger came up...
Hello Sean, Sorry, I did a few modifications that I didn't reported here. First, the pragma changed. Now it's <deprecatedIn: #versionSymbol replaceWith: 'rewriteString'>. Second, the syntax changed: the '`@' that were needed before (for the RBParseTreeRewriter) are gone. So each available metavariable are written directly: receiver, arg1, arg2, ... arg15. You need the latest version (8). So the example is now: C>>deprecatedMethodArg1: o1 arg2: o2 <deprecatedIn: #Pharo42 replaceWith: 'receiver replacementMethodArg1: arg2 arg2: arg1'> ^ #deprecated C>>replacementMethodArg1: o1 arg2: o2 ^ #replacement C>>senderMethod ^ self deprecatedMethodArg1: 1 + 1 arg2: 2 + 2. Then evaluating C new senderMethod should bring the following pre-debug window. Cheers, Camille
----- Cheers, Sean -- View this message in context: http://forum.world.st/Deprecator-tp4769843p4772312.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.