[Pharo-project] send a message code kata
Hi, for PrStef (that may be renamed ProfStef - thanks Lukas) there are several ways to go to the next lesson: PrStef next. [PrStef next] value. 3=3 ifTrue: [PrStef next]. 1 to: 1 do: [:i | PrStef next]. I'm thinking about adding more of it: (Smalltalk at: #PrStef) next. PrStef perform: #next. I'm sure you know other funny ways to send #next on PrStef :) Laurent
If you add one on exceptions, maybe: [PrStef bareNext] on: MessageNotUnderstood do: [PrStef next] Cheers, Henry On 17.01.2010 11:39, laurent laffont wrote:
Hi,
for PrStef (that may be renamed ProfStef - thanks Lukas) there are several ways to go to the next lesson:
PrStef next.
[PrStef next] value.
3=3 ifTrue: [PrStef next].
1 to: 1 do: [:i | PrStef next].
I'm thinking about adding more of it:
(Smalltalk at: #PrStef) next.
PrStef perform: #next.
I'm sure you know other funny ways to send #next on PrStef :)
Laurent
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I tried PrStef, the idea is really cool! Alexandre On 17 Jan 2010, at 07:39, laurent laffont wrote:
Hi,
for PrStef (that may be renamed ProfStef - thanks Lukas) there are several ways to go to the next lesson:
PrStef next.
[PrStef next] value.
3=3 ifTrue: [PrStef next].
1 to: 1 do: [:i | PrStef next].
I'm thinking about adding more of it:
(Smalltalk at: #PrStef) next.
PrStef perform: #next.
I'm sure you know other funny ways to send #next on PrStef :)
Laurent _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (3)
-
Alexandre Bergel -
Henrik Sperre Johansen -
laurent laffont