dub build doesn't work

2019-10-22 Thread OiseuKodeur via Digitalmars-d-learn
Hello, i am having a problem with dub build with this project https://github.com/OiseauKodeur/cervelet/tree/master/source when i try to compile everything go well but when i click to run the .exe it give my an error missing msvcr100.dll, but with rdmd the program run fine

Re: dub build doesn't work

2019-10-23 Thread OiseuKodeur via Digitalmars-d-learn
On Wednesday, 23 October 2019 at 06:40:47 UTC, Seb wrote: On Tuesday, 22 October 2019 at 22:14:02 UTC, OiseuKodeur wrote: Hello, i am having a problem with dub build with this project https://github.com/OiseauKodeur/cervelet/tree/master/source when i try to compile everything go well but when

Re: dub build doesn't work

2019-10-23 Thread OiseuKodeur via Digitalmars-d-learn
On Wednesday, 23 October 2019 at 18:37:10 UTC, kinke wrote: On Wednesday, 23 October 2019 at 16:55:37 UTC, OiseuKodeur wrote: On Wednesday, 23 October 2019 at 06:40:47 UTC, Seb wrote: You won't need Visual Studio for this, but something which ships msvcr100.dll. So sth. like this should be eno

Re: dub build doesn't work

2019-10-23 Thread OiseuKodeur via Digitalmars-d-learn
On Wednesday, 23 October 2019 at 22:06:28 UTC, SrMordred wrote: On Tuesday, 22 October 2019 at 22:14:02 UTC, OiseuKodeur wrote: Hello, i am having a problem with dub build with this project https://github.com/OiseauKodeur/cervelet/tree/master/source when i try to compile everything go well but

Re: dub build doesn't work

2019-10-23 Thread OiseuKodeur via Digitalmars-d-learn
BTW if you prefer using optlink and the digitalmars C runtime, you can instruct dub to do so with: --arch=x86 how can i add --arch=x86 flag to the dub.json so it do it automatically ?

How polymorphism work in D?

2019-11-05 Thread OiseuKodeur via Digitalmars-d-learn
I have this ``` import std.stdio : writeln; abstract class Foo { } class Bar : Foo { float value; this(float t_value) { value = t_value; } } class Baz : Foo { string name; this(string t_name) { name = t_name; } } void main() { Foo foo = new Bar(10); if (/* typeof fo

Re: How polymorphism work in D?

2019-11-05 Thread OiseuKodeur via Digitalmars-d-learn
On Wednesday, 6 November 2019 at 06:05:25 UTC, rikki cattermole wrote: On 06/11/2019 6:43 PM, OiseuKodeur wrote: I have this ``` import std.stdio : writeln; abstract class Foo { } class Bar : Foo {     float value;     this(float t_value) { value = t_value; } } class Baz : Foo {     stri