Re: WTF! new in class is static?!?!

2018-06-07 Thread Ethan via Digitalmars-d-learn
On Thursday, 7 June 2018 at 21:07:26 UTC, DigitalDesigns wrote: assert(b1.a == b2.a)!! The spec isn't clear on this but it uses the same rules as struct field initialisation, ie it's defined once and copied to each instance on creation.

Re: Emulating DLL

2019-03-20 Thread Ethan via Digitalmars-d-learn
On Tuesday, 19 March 2019 at 19:50:15 UTC, Craig wrote: For example, with windows I could simply compile to a dll then extract the code, or just use LoadLibrary and it effectively does all the work(steps 1 & 2 & 3). LoadLibrary performs steps 1 and part of step 2. The DllMain function of a

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

Re: Private variables accessible from outside class

2019-08-08 Thread Ethan via Digitalmars-d-learn
On Thursday, 8 August 2019 at 15:51:45 UTC, Drobet wrote: I'm having a weird issue, where after defining my classes variables as private https://dlang.org/spec/attribute.html Section 8.4.2 of the spec reads: Symbols with private visibility can only be accessed from within the same module.