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.
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
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
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 _
with doesn't work properly with alias this, I've already filed this in
bugzilla though.
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( "
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