#12 Bug in smalltalk learn page (profStef) - 22/24 Reflexion

Затворено
отворено пре 8 година од nero · 0 коментара
Admin of lolg.it коментирира пре 8 година

Originally at 2014-08-28T15:51:58Z by mandorman@github closed at 2014-09-08T14:11:33Z

Dear Nicolas,

I performed the successfully the nice (and quick) introduction into smalltalk via the web. It works perfectly, but I got a error on issue 22 (Reflexion) when I try to compile a new method on the fly.

     |newMethod|
    newMethod := Compiler new load: 'goToNextLesson ProfStef next.' forClass: ProfStef.
     ProfStef class addCompiledMethod: newMethod
     "Wow! I can't wait to use my new method!"
     ProfStef goToNextLesson.

So, when I execute: newMethod := Compiler new load: 'goToNextLesson ProfStef next.' forClass: ProfStef., I got this error : a Compiler does not understand #load:forClass:

Cheers,

Originally at 2014-08-28T15:51:58Z by mandorman@github closed at 2014-09-08T14:11:33Z Dear Nicolas, I performed the successfully the nice (and quick) introduction into smalltalk via the web. It works perfectly, but I got a error on issue 22 (Reflexion) when I try to compile a new method on the fly. ``` |newMethod| newMethod := Compiler new load: 'goToNextLesson ProfStef next.' forClass: ProfStef. ProfStef class addCompiledMethod: newMethod "Wow! I can't wait to use my new method!" ProfStef goToNextLesson. ``` So, when I execute: **newMethod := Compiler new load: 'goToNextLesson ProfStef next.' forClass: ProfStef.**, I got this error : *a Compiler does not understand #load:forClass:* Cheers,
nero затворено пре 7 година
Пријавите се да се прикључе у овом разговору.
Нема лабеле
Нема фазе
Нема одговорних
1 учесника
Учитавање...
Откажи
Сачувај
Још нема садржаја.