Re: alias to connect with superclass's constructor

2025-04-04 Thread Nick Treleaven via Digitalmars-d-learn
On Sunday, 23 March 2025 at 05:40:32 UTC, Jonathan M Davis wrote: On Saturday, March 22, 2025 11:38:05 AM MDT Paul Backus via Digitalmars-d-learn wrote: On Saturday, 22 March 2025 at 12:05:11 UTC, Ali Çehreli wrote: > On 3/21/25 8:35 PM, Andy Valencia wrote: > > > tst39.d(21):add `alias

Re: Using bindbc-sdl with D

2025-04-04 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 26 March 2025 at 17:34:14 UTC, Claus D. Volko wrote: Could anybody please tell me what I have to do in order to get this to work? I don't know what's causing your linker errors related to bindbc-common, but I suggest you start over. Delete all of the BindBC stuff you "co

Re: How does one use toString() inside of the class's hash function? Compiler error

2025-04-04 Thread Salih Dincer via Digitalmars-d-learn
On Tuesday, 1 April 2025 at 09:21:25 UTC, Daniel Donnelly, Jr. wrote: Error: @safe function def.Def.toHash cannot call @system function def.Def.toString: def.Def.toString is declared here... ``` I've always wondered about this, because I run into it every time I have an idea and begin to cod

Re: Can't access enum from a different module when it was generated by a string mixin.

2025-04-04 Thread realhet via Digitalmars-d-learn
On Monday, 31 March 2025 at 13:24:11 UTC, realhet wrote: Hello, Update: One ugly workaround I've found is to put a dummy struct around the string mixin, but that introduces unwanted redundancy. It seems like only module level enum type declarations are lost if they were mixed in.

Re: D Garbage Collector reference

2025-04-04 Thread Sergey via Digitalmars-d-learn
On Tuesday, 25 March 2025 at 17:46:22 UTC, Ian wrote: Hi, I am curious about the low level details of D's garbage collector. Is there a good reference in this regard? I have many questions... Cheers, Ian Hi there This is from my list: - https://dlang.org/blog/the-gc-series/ - https:

Re: How does D lang handle multithreaded applications and static members of classes?

2025-04-04 Thread Andy Valencia via Digitalmars-d-learn
On Friday, 4 April 2025 at 16:25:55 UTC, bauss wrote: shared is broken however. In what way? (Says the guy using it for his multi-threaded web service middleware.) Andy

Re: How does D lang handle multithreaded applications and static members of classes?

2025-04-04 Thread bauss via Digitalmars-d-learn
On Thursday, 3 April 2025 at 18:45:50 UTC, Inkrementator wrote: On Wednesday, 2 April 2025 at 08:38:32 UTC, Daniel Donnelly, Jr. wrote: On Wednesday, 2 April 2025 at 08:33:05 UTC, Inkrementator wrote: All global variables in D, including static class members, are thread local by default. You ha