Thread overview
super BUG
Aug 21, 2004
Ant
Aug 21, 2004
Ant
Aug 21, 2004
Thomas Kuehne
Aug 21, 2004
Ant
Aug 22, 2004
Andy Friesen
August 21, 2004
if method B.foo() exist there is no problem
########## Super.d #############
class A
{
	void foo()
	{
		printf("A.foo \n" );
	}
}

class B : A
{
//	void foo()
//	{
//		printf("B.foo \n" );
//		super.foo();
//	}
}

class C : B
{
	void foo()
	{
		printf("C.foo \n" );
		super.foo();
	}
}

void main()
{
	C c = new C();
	c.foo();
}

#########################
$dmd Super.d -I~/dmd/src/phobos
#########################
$Super
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
C.foo
.
.
.
.
etc

August 21, 2004
On Sat, 21 Aug 2004 11:02:20 -0400, Ant wrote:


forgot:

linux dmd 0.100
(was good with 0.98)

Ant

August 21, 2004
Seems to be a regression from 98 to 99.

An schrieb in <pan.2004.08.21.15.02.20.419085@yahoo.ca>
> ########## Super.d #############
> class A
> {
> void foo()
> {
> printf("A.foo \n" );
> }
> }
>
> class B : A
> {
> // void foo()
> // {
> // printf("B.foo \n" );
> // super.foo();
> // }
> }
>
> class C : B
> {
> void foo()
> {
> printf("C.foo \n" );
> super.foo();
> }
> }
>
> void main()
> {
> C c = new C();
> c.foo();
> }
>
> #########################
> $dmd Super.d -I~/dmd/src/phobos
> #########################
> $Super
> C.foo
> C.foo
> C.foo
> C.foo
> ... etc



August 21, 2004
On Sat, 21 Aug 2004 22:43:48 +0200, Thomas Kuehne wrote:

> Seems to be a regression from 98 to 99.
> 

The nineties are officially declared the darkest releases for DUI, lets hope things improve from 0.101...

:(

Ant

August 22, 2004
Ant wrote:
> On Sat, 21 Aug 2004 22:43:48 +0200, Thomas Kuehne wrote:
> 
> 
>>Seems to be a regression from 98 to 99.
>>
> 
> 
> The nineties are officially declared the darkest releases
> for DUI, lets hope things improve from 0.101...

Much like the 1990s, the 0.90s were only bad if you forget the 50s. ;)

 -- andy