Re: vibe.d and my first web service

2020-08-20 Thread Ben via Digitalmars-d-learn
On Thursday, 13 August 2020 at 09:54:06 UTC, Mr. Backup wrote: And as soon as I came across it, I wanted to use it in my project. But it has many packages for the same things, but these packages are unfinished. Everyone creates their own. You start comparing them and don't know what to choose f

Having some issues using Generator's yield with an interface

2015-11-02 Thread Ben via Digitalmars-d-learn
When I create a generator using an interface (or abstract class) I must cast the concrete instance to the interface. Why does the Generator not know that B is a implementation of the interface of A? /// Test Code interface A {} class B : A{} // Fails auto testGen1 = new Generator!A({ yiel