Re: Dub version

2019-08-09 Thread Andre Pany via Digitalmars-d-learn
On Friday, 9 August 2019 at 15:41:08 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 14:15:36 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 13:59:51 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 13:01:51 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 12:10:21 UTC,

Re: Dub version

2019-08-09 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 9 August 2019 at 14:15:36 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 13:59:51 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 13:01:51 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 12:10:21 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 09:01:54 UTC, Andre

Re: Dub version

2019-08-09 Thread Andre Pany via Digitalmars-d-learn
On Friday, 9 August 2019 at 13:59:51 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 13:01:51 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 12:10:21 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 09:01:54 UTC, Andre Pany wrote: [...] I am at lost here. Before I can run

Re: Dub version

2019-08-09 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 9 August 2019 at 13:01:51 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 12:10:21 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 09:01:54 UTC, Andre Pany wrote: [...] I am at lost here. Before I can run my D project using dub.1.11.0 executable install on my system

Re: Abstract classes vs interfaces, casting from void*

2019-08-09 Thread Simen Kjærås via Digitalmars-d-learn
On Friday, 9 August 2019 at 12:26:59 UTC, John Colvin wrote: import std.stdio; interface I { void foo(); } class C : I { override void foo() { writeln("hi"); } } abstract class AC { void foo(); } class D : AC { override void foo() { writeln("hi"); } } void main() { auto

Re: Abstract classes vs interfaces, casting from void*

2019-08-09 Thread John Colvin via Digitalmars-d-learn
On Friday, 9 August 2019 at 13:19:14 UTC, kinke wrote: On Friday, 9 August 2019 at 12:26:59 UTC, John Colvin wrote: Why is there no "hi" between 0 and 1? Because you are treating the unadjusted object pointer as interface pointer and then call the only virtual function of that interface, in

Re: Abstract classes vs interfaces, casting from void*

2019-08-09 Thread kinke via Digitalmars-d-learn
On Friday, 9 August 2019 at 12:26:59 UTC, John Colvin wrote: Why is there no "hi" between 0 and 1? Because you are treating the unadjusted object pointer as interface pointer and then call the only virtual function of that interface, in the 2nd vtbl slot (after the TypeInfo ptr). Casting a

Re: Dub version

2019-08-09 Thread Andre Pany via Digitalmars-d-learn
On Friday, 9 August 2019 at 12:10:21 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 09:01:54 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 08:30:49 UTC, GreatSam4sure wrote: [...] My assumption is, you have several dub executables on your computer. A recent one, bundled with

Abstract classes vs interfaces, casting from void*

2019-08-09 Thread John Colvin via Digitalmars-d-learn
import std.stdio; interface I { void foo(); } class C : I { override void foo() { writeln("hi"); } } abstract class AC { void foo(); } class D : AC { override void foo() { writeln("hi"); } } void main() { auto c = new C(); writeln(0); (cast(I)cast(void*)c).foo();

Blog Post #0060: Cairo Filled Arcs, Precision Arcs, and Curves

2019-08-09 Thread Ron Tarrant via Digitalmars-d-learn
Today's post covers a lot of ground and answers a few of those burning questions you may have about taming Cairo arcs and curves. Still, it's a quick read because... well, tons of diagrams and screenshots. So, come on over and take a look:

Re: Dub version

2019-08-09 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 9 August 2019 at 09:01:54 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 08:30:49 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 03:52:11 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 01:36:43 UTC, greatsam4sure wrote: On Friday, 9 August 2019 at 01:18:12 UTC,

Re: Dub version

2019-08-09 Thread Andre Pany via Digitalmars-d-learn
On Friday, 9 August 2019 at 08:30:49 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 03:52:11 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 01:36:43 UTC, greatsam4sure wrote: On Friday, 9 August 2019 at 01:18:12 UTC, Elronnd wrote: [...] dub fetch dub Fetching dub 1.16.0...

Re: Dub version

2019-08-09 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 9 August 2019 at 03:52:11 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 01:36:43 UTC, greatsam4sure wrote: On Friday, 9 August 2019 at 01:18:12 UTC, Elronnd wrote: [...] dub fetch dub Fetching dub 1.16.0... Please note that you need to use `dub run ` or add it to