Re: Bug with multiple subtyping?

2013-09-08 Thread Joseph Rushton Wakeling
On 08/09/13 21:44, Jacob Carlborg wrote: Try using opDispatch as a described in the other thread. I'll give that a go, but I still think this is a bug that needs fixing. The example in TDPL p. 231 will very clearly also not work due to this issue.

Re: Bug with multiple subtyping?

2013-09-08 Thread Jacob Carlborg
On 2013-09-07 16:10, Joseph Rushton Wakeling wrote: Hello all, TDPL gives a description in Section 6.13 (pp. 230-233) of a method for subtyping by storing a private instance of the base type and using "alias ... this" to access its methods. The example given is as follows: class StorableShape

Re: Bug with multiple subtyping?

2013-09-08 Thread Joseph Rushton Wakeling
On 07/09/13 16:10, Joseph Rushton Wakeling wrote: TDPL gives a description in Section 6.13 (pp. 230-233) of a method for subtyping by storing a private instance of the base type and using "alias ... this" to access its methods. The example given is as follows: No one has confirmed yea or nay o

Bug with multiple subtyping?

2013-09-07 Thread Joseph Rushton Wakeling
Hello all, TDPL gives a description in Section 6.13 (pp. 230-233) of a method for subtyping by storing a private instance of the base type and using "alias ... this" to access its methods. The example given is as follows: class StorableShape : Shape { private DBObject _store; alias _

Re: Multiple subtyping

2011-08-26 Thread Andrej Mitrovic
with doesn't work properly with alias this, I've already filed this in bugzilla though.

Re: Multiple subtyping

2011-08-25 Thread Timon Gehr
On 08/26/2011 05:45 AM, Joel Christensen wrote: Hi, Has anyone had much experience with multiple subtyping. //Org: based on page 232 (6.13.1) in The D Programming Language book //#save(); without storeShape does not work import std.stdio; class Shape { void shape() { writeln( "

Multiple subtyping

2011-08-25 Thread Joel Christensen
Hi, Has anyone had much experience with multiple subtyping. //Org: based on page 232 (6.13.1) in The D Programming Language book //#save(); without storeShape does not work import std.stdio; class Shape { void shape() { writeln( "Shape" ); } } clas