digitalmars.D.learn - abstract classes and interfaces
- kyle (23/23) Sep 27 2021 I'm attempting Markdown for the first time so forgive me if that
- Steven Schveighoffer (10/40) Sep 27 2021 That's a regression. In 2.092.1, it reports:
- Adam D Ruppe (6/7) Sep 27 2021 aye known bug here
- kyle (2/9) Sep 27 2021 That'd be great. Long live Beefconf.
- =?UTF-8?Q?Ali_=c3=87ehreli?= (4/5) Sep 27 2021 I miss it way too often. Gotta have some beet ready for the next
- Tejas (2/9) Sep 27 2021 Stop roasting Walter and co. lol XD
- Salih Dincer (2/3) Sep 27 2021 What is the version of your DMD?
I'm attempting Markdown for the first time so forgive me if that doesn't go well. Consider the following: ```d 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.
Sep 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: ```d 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
Sep 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.
Sep 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'd be great. Long live Beefconf.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.
Sep 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
Sep 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:Stop roasting Walter and co. lol XDThat'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.
Sep 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?
Sep 27 2021