Re: [go-nuts] Re: Thinking OO virtual function in Go

2016-11-24 Thread Nick Patavalis
Hi, On Thu, Nov 24, 2016 at 9:33 AM, Haddock wrote: > > Here is another blog that shows a way how to do this: > http://objectscape.blogspot.de/2013/09/inner-pattern-to-mimic-method.html > Clever! I would like, though, to underscore the conclusion reached by the original post author: My preli

Re: [go-nuts] Re: Thinking OO virtual function in Go

2016-11-23 Thread Tahir Hashmi
On Wednesday, November 23, 2016 at 8:21:23 PM UTC+5:30, Tong Sun wrote: > I've tried to derive how to achieve a) implementation inheritance, >> followed by b) type substitution and c) enabling dynamic dispatch as in >> virtual functions in my blog post here: >> https://tech.t9i.in/2014/01/2

Re: [go-nuts] Re: Thinking OO virtual function in Go

2016-11-23 Thread Tong Sun
On Wed, Nov 23, 2016 at 8:52 AM, Tahir Hashmi wrote: > > I also like the approach suggested by Sebastien Binet. It's really neat in > situations where you can get by without needing to override the base > implementation (e.g. of Shape.Output()). > That it is only a partial solution -- I have a hu