Re: Is it possible to target all platforms that Qt Quick can target?

2019-08-12 Thread Enjoys Math via Digitalmars-d-learn
Any ideas on this?

Why is this allowed? Inheritance variable shadowing

2019-08-12 Thread Chris Katko via Digitalmars-d-learn
You can drop this straight into run.dlang.io: import std.stdio; class base{ float x=1;} class child : base {float x=2;} //shadows base variable! void main() { base []array; child c = new child; array ~= c; writeln(c.x); //=2 writeln(array[0].x); //=1 //uses BASE's

Re: Local static class fields

2019-08-12 Thread Paul Backus via Digitalmars-d-learn
On Monday, 12 August 2019 at 22:48:43 UTC, Bert wrote: Making a field static is effectively a global variable to the class. I have a recursive class structure(think of a graph or tree) and I need to keep a global state for it, but this state actually needs to be different for each tree

Re: Local static class fields

2019-08-12 Thread DanielG via Digitalmars-d-learn
On Monday, 12 August 2019 at 22:48:43 UTC, Bert wrote: I have a recursive class structure(think of a graph or tree) and I need to keep a global state for it, If I'm understanding the problem correctly, it seems like you have a choice to make: either "bloat" the child nodes by the size of a

Local static class fields

2019-08-12 Thread Bert via Digitalmars-d-learn
Making a field static is effectively a global variable to the class. I have a recursive class structure(think of a graph or tree) and I need to keep a global state for it, but this state actually needs to be different for each tree object. The reason for this is that structurally it will not

Re: Desktop app with vibe.d

2019-08-12 Thread DanielG via Digitalmars-d-learn
On Monday, 12 August 2019 at 10:41:57 UTC, GreatSam4sure wrote: I will be happy if I can build an app in D with fanciful ui. I will also be happy if you know any other way to build a fanciful ui in D like adobe flex, javafx, etc. I haven't seen anybody doing it yet, but in theory you could

Re: Desktop app with vibe.d

2019-08-12 Thread Max Haughton via Digitalmars-d-learn
On Monday, 12 August 2019 at 10:41:57 UTC, GreatSam4sure wrote: Pls I want to know if it is possible to build desktop app with vibe.d just like nodejs. I am not satisfy with the GUI of Dlang such as dlangui and gtkd. I don't think they have good styling capabilities like HTML and CSS. I will

Re: Is it possible to target all platforms that Qt Quick can target?

2019-08-12 Thread Enjoys Math via Digitalmars-d-learn
On Monday, 12 August 2019 at 18:30:24 UTC, Kagamin wrote: You're probably interested in readiness, not possibility? I am interested in both. If I begin coding in D today, it will likely be 8 months until the backend is completed.

Re: Ethan: About your wpf/C# and D integration

2019-08-12 Thread a11e99z via Digitalmars-d-learn
On Monday, 12 August 2019 at 13:08:17 UTC, Bert wrote: One of the biggest issues I have with D is properly gui development. It's just a real pain in the ass compared to wpf and C#. maybe it is better to use WinRT instead of C#/WPF? - can be used for desktop apps too - same XAML - WinRT based

Re: Is it possible to target all platforms that Qt Quick can target?

2019-08-12 Thread Kagamin via Digitalmars-d-learn
You're probably interested in readiness, not possibility?

Is it possible to target all platforms that Qt Quick can target?

2019-08-12 Thread Enjoys Math via Digitalmars-d-learn
Hi, I'm writing my GUI in C++ & Qt Quick. I know that I could connect to D from the GUI code using a DLL, but can something similar be done on the other PC OS's and the mobile OS's? Thanks.

Re: Ethan: About your wpf/C# and D integration

2019-08-12 Thread Ethan via Digitalmars-d-learn
On Monday, 12 August 2019 at 13:08:17 UTC, Bert wrote: What I'd like to do is write the business end of apps in D and use C# for the gui(with possibly wpf hosting a D gui window in some cases for performance of graphics). I want to leverage D's meta programming to write efficient oop

Ethan: About your wpf/C# and D integration

2019-08-12 Thread Bert via Digitalmars-d-learn
One of the biggest issues I have with D is properly gui development. It's just a real pain in the ass compared to wpf and C#. I'm curious about what you have done and if it would let me get the best of both worlds. What I'd like to do is write the business end of apps in D and use C# for

Re: How to run the dub bundle with dmd

2019-08-12 Thread GreatSam4sure via Digitalmars-d-learn
On Sunday, 11 August 2019 at 10:04:47 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 16:44:48 UTC, greatsam4sure wrote: 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

Desktop app with vibe.d

2019-08-12 Thread GreatSam4sure via Digitalmars-d-learn
Pls I want to know if it is possible to build desktop app with vibe.d just like nodejs. I am not satisfy with the GUI of Dlang such as dlangui and gtkd. I don't think they have good styling capabilities like HTML and CSS. I will be happy if I can build an app in D with fanciful ui. I will

Re: What the abstrac final class mean?

2019-08-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, August 12, 2019 2:54:56 AM MDT lili via Digitalmars-d-learn wrote: > Hi: > Why need defined an abstract final class? > see > https://github.com/Rikarin/Trinix/blob/master/Kernel/arch/amd64/gdt.d It's one way to effectively create a namespace using a class. Another way would

Re: What the abstrac final class mean?

2019-08-12 Thread a11e99z via Digitalmars-d-learn
On Monday, 12 August 2019 at 09:16:19 UTC, Alex wrote: On Monday, 12 August 2019 at 08:54:56 UTC, lili wrote: Hi: Why need defined an abstract final class? see https://github.com/Rikarin/Trinix/blob/master/Kernel/arch/amd64/gdt.d From what I saw, all members are static. So, this is

Re: What the abstrac final class mean?

2019-08-12 Thread Alex via Digitalmars-d-learn
On Monday, 12 August 2019 at 08:54:56 UTC, lili wrote: Hi: Why need defined an abstract final class? see https://github.com/Rikarin/Trinix/blob/master/Kernel/arch/amd64/gdt.d From what I saw, all members are static. So, this is a kind of utility class, which is not supposed to be

What the abstrac final class mean?

2019-08-12 Thread lili via Digitalmars-d-learn
Hi: Why need defined an abstract final class? see https://github.com/Rikarin/Trinix/blob/master/Kernel/arch/amd64/gdt.d