Thread overview
abstract classes and interfaces
Sep 27, 2021
kyle
Sep 27, 2021
Adam D Ruppe
Sep 27, 2021
kyle
Sep 27, 2021
Ali Çehreli
Sep 27, 2021
Tejas
Sep 27, 2021
Salih Dincer
September 27, 2021

I'm attempting Markdown for the first time so forgive me if that doesn't go well. Consider the following:

interface A
{
    bool broken();
}

abstract class B : A
{

}

class C : B
{

}

void main()
{
    import std.stdio;
    C test = new C();
    writeln(test);
}

DMD compiles this providing no notice that either B or C do not implement interface A. Is this how things are supposed to work? Thanks.

September 27, 2021

On 9/27/21 12:11 PM, kyle wrote:

>

I'm attempting Markdown for the first time so forgive me if that doesn't go well. Consider the following:

interface A
{
     bool broken();
}

abstract class B : A
{

}

class C : B
{

}

void main()
{
     import std.stdio;
     C test = new C();
     writeln(test);
}

DMD compiles this providing no notice that either B or C do not implement interface A. Is this how things are supposed to work? Thanks.

That's a regression. In 2.092.1, it reports:

onlineapp.d(11): Error: class `onlineapp.C` interface function `bool broken()` is not implemented
onlineapp.d(11): Error: class `onlineapp.C` interface function `bool broken()` is not implemented

As of 2.093, it no longer errors.

-Steve

September 27, 2021

On Monday, 27 September 2021 at 16:11:31 UTC, kyle wrote:

>

DMD compiles this providing no notice...
What is the version of your DMD?

September 27, 2021
On Monday, 27 September 2021 at 16:20:59 UTC, Steven Schveighoffer wrote:
> That's a regression. In 2.092.1, it reports:

aye known bug here

https://issues.dlang.org/show_bug.cgi?id=21321

maybe once dmd can compile C code we'll fix it so it compiles D code correctly again.

September 27, 2021
On Monday, 27 September 2021 at 16:23:49 UTC, Adam D Ruppe wrote:
> On Monday, 27 September 2021 at 16:20:59 UTC, Steven Schveighoffer wrote:
>> That's a regression. In 2.092.1, it reports:
>
> aye known bug here
>
> https://issues.dlang.org/show_bug.cgi?id=21321
>
> maybe once dmd can compile C code we'll fix it so it compiles D code correctly again.

That'd be great. Long live Beefconf.
September 27, 2021

On Monday, 27 September 2021 at 16:23:49 UTC, Adam D Ruppe wrote:

>

On Monday, 27 September 2021 at 16:20:59 UTC, Steven Schveighoffer wrote:

>

That's a regression. In 2.092.1, it reports:

aye known bug here

https://issues.dlang.org/show_bug.cgi?id=21321

maybe once dmd can compile C code we'll fix it so it compiles D code correctly again.

Stop roasting Walter and co. lol XD

September 27, 2021
On 9/27/21 9:30 AM, kyle wrote:

> That'd be great. Long live Beefconf.

I miss it way too often. Gotta have some beet ready for the next BeetConf. :p

Ali