Any ideas on this?
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
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
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
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
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
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
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.
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
You're probably interested in readiness, not possibility?
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.
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
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
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
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
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
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
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
Hi:
Why need defined an abstract final class?
see
https://github.com/Rikarin/Trinix/blob/master/Kernel/arch/amd64/gdt.d
19 matches
Mail list logo