Re: How to run the dub bundle with dmd

2019-08-10 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 10 August 2019 at 14:06:11 UTC, greatsam4sure wrote: On Saturday, 10 August 2019 at 13:46:23 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: [...] Can you make a screenshot of the popup? Kind regards Andre I have make a screenshot of

Re: How to run the dub bundle with dmd

2019-08-10 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 10 August 2019 at 14:06:11 UTC, greatsam4sure wrote: On Saturday, 10 August 2019 at 13:46:23 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: [...] Can you make a screenshot of the popup? Kind regards Andre I have make a screenshot of

Re: How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 15:17:56 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 14:06:11 UTC, greatsam4sure wrote: On Saturday, 10 August 2019 at 13:46:23 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: [...] Can you make a screenshot

Re: How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 15:42:39 UTC, rikki cattermole wrote: This is a crazy question but is your Windows install 64bit? yes. See the spec below https://ibb.co/M1TwY7W

Re: Abstract classes vs interfaces, casting from void*

2019-08-10 Thread John Colvin via Digitalmars-d-learn
On Friday, 9 August 2019 at 13:39:53 UTC, Simen Kjærås wrote: Thanks for the extra detail. Is there a solid reason to ever use an interface over an abstract class? (Other than multiple inheritance). I'm such a noob at anything related to OO.

Re: How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 13:46:23 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: I came across the problem recently. I have dub 1.11.0 install on my windows 10 core i7 but does not support the command "dub add package name" since all the packages

Re: How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 15:17:56 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 14:06:11 UTC, greatsam4sure wrote: On Saturday, 10 August 2019 at 13:46:23 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: [...] Can you make a screenshot

Re: Passing nested template function

2019-08-10 Thread Alex via Digitalmars-d-learn
On Saturday, 10 August 2019 at 17:45:43 UTC, Prateek Nayak wrote: A nested function can be passed to another function evident from this example: https://run.dlang.io/is/6waRkB However if the nested function is a template function, it raises an error https://run.dlang.io/is/PQhkwl The error

Re: Passing nested template function

2019-08-10 Thread aliak via Digitalmars-d-learn
On Saturday, 10 August 2019 at 17:45:43 UTC, Prateek Nayak wrote: A nested function can be passed to another function evident from this example: https://run.dlang.io/is/6waRkB However if the nested function is a template function, it raises an error https://run.dlang.io/is/PQhkwl The error

Re: Abstract classes vs interfaces, casting from void*

2019-08-10 Thread Alex via Digitalmars-d-learn
On Saturday, 10 August 2019 at 14:29:03 UTC, John Colvin wrote: On Saturday, 10 August 2019 at 10:11:15 UTC, Alex wrote: On Saturday, 10 August 2019 at 08:20:46 UTC, John Colvin wrote: On Friday, 9 August 2019 at 13:39:53 UTC, Simen Kjærås wrote: Thanks for the extra detail. Is there a

Re: How to run the dub bundle with dmd

2019-08-10 Thread rikki cattermole via Digitalmars-d-learn
This is a crazy question but is your Windows install 64bit?

Re: LNK4255 warning - should I be concerned?

2019-08-10 Thread DanielG via Digitalmars-d-learn
On Saturday, 10 August 2019 at 13:08:39 UTC, Dukc wrote: Let me guess, you're linking Vibe.D? I get those errors all the time while using it. Haven't noticed effect on behaviour but it might be related to why it won't compile as 32-bit. No, this is mostly with own code with I believe just one

Re: Abstract classes vs interfaces, casting from void*

2019-08-10 Thread Timon Gehr via Digitalmars-d-learn
On 10.08.19 16:29, John Colvin wrote: Ok. What would go wrong (in D) if I just replaced every interface with an abstract class? interface A{} interface B{} class C: A,B{ }

Passing nested template function

2019-08-10 Thread Prateek Nayak via Digitalmars-d-learn
A nested function can be passed to another function evident from this example: https://run.dlang.io/is/6waRkB However if the nested function is a template function, it raises an error https://run.dlang.io/is/PQhkwl The error being: cannot get frame pointer to the nested function Is there a

Re: Abstract classes vs interfaces, casting from void*

2019-08-10 Thread John Colvin via Digitalmars-d-learn
On Saturday, 10 August 2019 at 10:11:15 UTC, Alex wrote: On Saturday, 10 August 2019 at 08:20:46 UTC, John Colvin wrote: On Friday, 9 August 2019 at 13:39:53 UTC, Simen Kjærås wrote: Thanks for the extra detail. Is there a solid reason to ever use an interface over an abstract class?

Re: LNK4255 warning - should I be concerned?

2019-08-10 Thread Dukc via Digitalmars-d-learn
On Thursday, 8 August 2019 at 18:14:22 UTC, DanielG wrote: "warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info" Is there some way to get more detail about this warning? Might help to know which objects ... My program is working fine now,

Re: How to run the dub bundle with dmd

2019-08-10 Thread Dukc via Digitalmars-d-learn
On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: I came across the problem recently. I have dub 1.11.0 install on my windows 10 core i7 but does not support the command "dub add package name" since all the packages in dub package register now use this command. I cannot find

Re: Abstract classes vs interfaces, casting from void*

2019-08-10 Thread Alex via Digitalmars-d-learn
On Saturday, 10 August 2019 at 08:20:46 UTC, John Colvin wrote: On Friday, 9 August 2019 at 13:39:53 UTC, Simen Kjærås wrote: Thanks for the extra detail. Is there a solid reason to ever use an interface over an abstract class? (Other than multiple inheritance). I'm such a noob at

How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
I came across the problem recently. I have dub 1.11.0 install on my windows 10 core i7 but does not support the command "dub add package name" since all the packages in dub package register now use this command. I cannot find window binary for the recent version of dub I have uninstalled the

Re: Abstract classes vs interfaces, casting from void*

2019-08-10 Thread Antonio Corbi via Digitalmars-d-learn
On Saturday, 10 August 2019 at 08:20:46 UTC, John Colvin wrote: On Friday, 9 August 2019 at 13:39:53 UTC, Simen Kjærås wrote: Thanks for the extra detail. Is there a solid reason to ever use an interface over an abstract class? (Other than multiple inheritance). I'm such a noob at

Getting a HTTP request body over wire for Vibe.d to process

2019-08-10 Thread Dukc via Digitalmars-d-learn
I am trying to use XMLHttpRequest[1] to send a request with a body for Vibe.D to process. However, it seems that I'm getting tripped up on serverside and client side api simultaenously, with no way to know what's really happening. I'm starting to be positive that I need a code example or I'll

Re: How to run the dub bundle with dmd

2019-08-10 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: I came across the problem recently. I have dub 1.11.0 install on my windows 10 core i7 but does not support the command "dub add package name" since all the packages in dub package register now use this command. I cannot find

Re: How to run the dub bundle with dmd

2019-08-10 Thread GreatSam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 13:30:39 UTC, Dukc wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: I came across the problem recently. I have dub 1.11.0 install on my windows 10 core i7 but does not support the command "dub add package name" since all the packages in

Re: Abstract classes vs interfaces, casting from void*

2019-08-10 Thread John Colvin via Digitalmars-d-learn
On Friday, 9 August 2019 at 13:39:53 UTC, Simen Kjærås wrote: We're getting into somewhat advanced topics now. This is described in the Application Binary Interface page of the documentation[0]. In short: classes and interfaces both use a vtable[1] that holds pointers to each of their methods.

Re: Abstract classes vs interfaces, casting from void*

2019-08-10 Thread John Colvin via Digitalmars-d-learn
On Saturday, 10 August 2019 at 10:02:02 UTC, Antonio Corbi wrote: On Saturday, 10 August 2019 at 08:20:46 UTC, John Colvin wrote: On Friday, 9 August 2019 at 13:39:53 UTC, Simen Kjærås wrote: Thanks for the extra detail. Is there a solid reason to ever use an interface over an abstract