From a29afd8b21bf0aac3a6c159224dfa6fccc1518b5 Mon Sep 17 00:00:00 2001 From: Darius Clarke Date: Sat, 10 May 2014 15:53:46 -0700 Subject: [PATCH] In Reflection page of lession 22/24 replace outdated #load:forClass: with #install:forClass:category: --- trysmalltalk/st/TrySmalltalk.st | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trysmalltalk/st/TrySmalltalk.st b/trysmalltalk/st/TrySmalltalk.st index 7de1e8f..d6610a6 100644 --- a/trysmalltalk/st/TrySmalltalk.st +++ b/trysmalltalk/st/TrySmalltalk.st @@ -679,8 +679,11 @@ ProfStef methodDictionary. "Let''s create a new method to go to the next lesson:" |newMethod| -newMethod := Compiler new load: ''goToNextLesson ProfStef next.'' forClass: ProfStef. -ProfStef class addCompiledMethod: newMethod +newMethod := Compiler new + install: ''goToNextLesson ProfStef next.'' + forClass: ProfStef + category: ''navigation''. +ProfStef class addCompiledMethod: newMethod. "Wow!! I can''t wait to use my new method!!"