On 19/07/2011, at 0:09, Patrick Browne <[email protected]> wrote: > instance Bird Emperor where > -- No fly method > walk x y = y > > instance Penguin Emperor where > -- How can I override the walk method in the instance Penguin? > -- walk x y = x Why would you want to override the walk method for Emperor? It already has one due to being a Bird. How could you possibly distinguish an Emperor walking as a Bird from an Emperor walking as a Penguin? Why would it be desirable? _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
- [Haskell-cafe] partial inheritance Patrick Browne
- Re: [Haskell-cafe] partial inheritance Christopher Done
- Re: [Haskell-cafe] partial inheritance Jerzy Karczmarczuk
- Re: [Haskell-cafe] partial inheritance Ketil Malde
- Re: [Haskell-cafe] partial inheritance Patrick Browne
- Re: [Haskell-cafe] partial inheritanc... Jerzy Karczmarczuk
- Re: [Haskell-cafe] partial inheri... Patrick Browne
- Re: [Haskell-cafe] partial i... Yves Parès
- Re: [Haskell-cafe] parti... Maciej Marcin Piechotka
- Re: [Haskell-cafe] partial i... Richard O'Keefe
- Re: [Haskell-cafe] partial i... Malcolm Wallace
- Re: [Haskell-cafe] partial inheri... Felipe Almeida Lessa
- Re: [Haskell-cafe] partial inheritanc... Richard O'Keefe
- Re: [Haskell-cafe] partial inheri... Donn Cave
