Re: [Pharo-users] double dispatch example

2016-10-11 Thread stepharo
Tx todd For me it was too complex. I should check the book and andres and now I used the examples given my alex. Le 10/10/16 à 09:24, Todd Blanchard a écrit : On Sep 13, 2016, at 12:35, Denis Kudriashov > wrote: 2016-09-13 20:56

Re: [Pharo-users] double dispatch example

2016-10-10 Thread Todd Blanchard
> On Sep 13, 2016, at 12:35, Denis Kudriashov wrote: > > > 2016-09-13 20:56 GMT+02:00 stepharo >: > > I was thinking about the code in Pharo. > Probably most known and beautiful case is arithmetic operations. Look at >

Re: [Pharo-users] double dispatch example

2016-09-29 Thread Peter H. Meadows via Pharo-users
--- Begin Message --- On 13 September 2016 at 11:33, stepharo wrote: > Hi > > If you happen to know a double dispatch situation in Pharo, I'm interested > since I'm revisiting my lecture. > There is a good example in

Re: [Pharo-users] double dispatch example

2016-09-15 Thread Alexandre Bergel
> I was thinking about the code in Pharo. > > Plenty of examples: >> - Converting money > > can you tell me more about this one? I mean summing and converting different money. Here is the whole idea: 1 EUR = 662 CLP (Chilean pesos) You have a class Money to which you can sum other money.

Re: [Pharo-users] double dispatch example

2016-09-14 Thread Ben Coman
http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org On Thu, Sep 15, 2016 at 10:04 AM, Melanie Tarr wrote: > Can someone please tell me how to unsubscribe from this list, > > Kind Regards > Melanie > > On Tue, Sep 13, 2016 at 10:16 PM, Alexandre Bergel

Re: [Pharo-users] double dispatch example

2016-09-14 Thread Melanie Tarr
Can someone please tell me how to unsubscribe from this list, Kind Regards Melanie On Tue, Sep 13, 2016 at 10:16 PM, Alexandre Bergel wrote: > Hi Stef! > > Plenty of examples: > > - Converting money > - Paper, Stone, Scissor > - A canvas containing triangle, circle,

Re: [Pharo-users] double dispatch example

2016-09-13 Thread Denis Kudriashov
2016-09-13 20:56 GMT+02:00 stepharo : > > I was thinking about the code in Pharo. > > Plenty of examples: > >> - Converting money >> > > can you tell me more about this one? Probably most known and beautiful case is arithmetic operations. Look at #adaptToInteger:andSend: and

Re: [Pharo-users] double dispatch example

2016-09-13 Thread Alexandre Bergel
Hi Stef! Plenty of examples: - Converting money - Paper, Stone, Scissor - A canvas containing triangle, circle, box has to be printed, on an html canvas or PDF. (Very close to the Visitor design pattern, but simpler) Here are the lectures I use:

[Pharo-users] double dispatch example

2016-09-13 Thread stepharo
Hi If you happen to know a double dispatch situation in Pharo, I'm interested since I'm revisiting my lecture. Stef