Re: How do you get basic hello world app with Derelict-GLFW to build?

2025-04-02 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 3 April 2025 at 04:44:38 UTC, Daniel Donnelly, Jr. wrote: == Build: 3 succeeded, 3 failed, 0 up-to-date, 0 skipped == == Build completed at 6:10 PM and took 14.375 seconds == ``` The code: ``` import derelict.glfw3; void main() { DerelictGLF

Re: derelict-gl3 + derelict-glfw3 + derelict-util (version?) - need instructions on handling basic package version dependency conflicts

2025-04-02 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 3 April 2025 at 04:41:14 UTC, Daniel Donnelly, Jr. wrote: When trying all 3 of these libraries together (just adding them with e.g. `derelict-gl3` so latest version) I get: ``` C:\Users\fruit\OneDrive\Desktop\MathProjects\DerelictTest\derelicttest2>dub generate visuald Error Unres

How do you get basic hello world app with Derelict-GLFW to build?

2025-04-02 Thread Daniel via Digitalmars-d-learn
Errors: ``` ..\..\..\..\..\..\AppData\Local\dub\packages\derelict-gl3\2.0.0-beta.8\derelict-gl3\source\derelict\opengl\impl.d-mixin-94(152): Deprecation: using `in` parameters with `extern(Windows)` functions is deprecated ..\..\..\..\..\..\AppData\Local\dub\packages\derelict-gl3\2.0.0-beta.8\d

derelict-gl3 + derelict-glfw3 + derelict-util (version?) - need instructions on handling basic package version dependency conflicts

2025-04-02 Thread Daniel via Digitalmars-d-learn
When trying all 3 of these libraries together (just adding them with e.g. `derelict-gl3` so latest version) I get: ``` C:\Users\fruit\OneDrive\Desktop\MathProjects\DerelictTest\derelicttest2>dub generate visuald Error Unresolvable dependencies to package derelict-util: derelict-gl3 1.0.24 dep

Re: Update to MacOS Sequoia Version 15.4 (24E248) broke dmd and ldmd2 for me

2025-04-02 Thread Christian Köstlin via Digitalmars-d-learn
On Wednesday, 2 April 2025 at 20:51:38 UTC, Sergey wrote: https://github.com/ldc-developers/ldc/issues/4899 https://github.com/dlang/dmd/issues/21126 Great! Thanks for the links, will follow the discussions there. I only see now how much of my OSX workflow is based on dlang :-/

Re: Update to MacOS Sequoia Version 15.4 (24E248) broke dmd and ldmd2 for me

2025-04-02 Thread Sergey via Digitalmars-d-learn
On Wednesday, 2 April 2025 at 20:44:21 UTC, Christian Köstlin wrote: Hi, I just updated to said version on Apple silicon and neither dmd nor ldmd2 work anymore for me (as installed by the dlang install script https://dlang.org/install.html, which in turn used dmd.2.111.0.osx.tar.xz and ldc2-1

Re: Deserialising JSON with asdf when a field is unexpectedly null

2025-04-02 Thread Sergey via Digitalmars-d-learn
On Wednesday, 2 April 2025 at 15:37:46 UTC, Anonymouse wrote: I'm trying to replace my use of `std.json` with `asdf`. What should I do? I don't want to just catch the exception but so far that's the best solution I have. ```d struct S { static struct Inner { string s = "foo";

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

2025-04-02 Thread Inkrementator via Digitalmars-d-learn
On Tuesday, 1 April 2025 at 23:01:23 UTC, Daniel Donnelly, Jr. wrote: Say I have a static context stack in my class Context, will each new thread receive their own copy of the static member or do I have to account for multiple threads and do it myself? All global variables in D, including stat

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

2025-04-02 Thread Daniel via Digitalmars-d-learn
On Wednesday, 2 April 2025 at 08:33:05 UTC, Inkrementator wrote: On Tuesday, 1 April 2025 at 23:01:23 UTC, Daniel Donnelly, Jr. wrote: Say I have a static context stack in my class Context, will each new thread receive their own copy of the static member or do I have to account for multiple thr