Re: Programming in D, page 155. shared static this() fails

2025-07-29 Thread Luna via Digitalmars-d-learn
On Tuesday, 29 July 2025 at 22:57:50 UTC, Brother Bill wrote: ``` import std.stdio; immutable int[] i; shared static this() { writeln("In shared static this()"); i ~= 43; } void main() { writeln("In main()"); writeln("i: ", i); } ``` Error messages: C:\D\dmd2\w

Re: How to use D on M2 macOS?

2025-07-21 Thread Luna via Digitalmars-d-learn
On Monday, 21 July 2025 at 14:32:49 UTC, Albert wrote: On Monday, 21 July 2025 at 14:16:29 UTC, Luna wrote: [...] Thank you. This seems to have worked better! Though I am still getting errors: ``` Could not initialize DCD for ``` and in the output get a lot of: ``` 2025-07-21T15:30:59.455

Re: How to use D on M2 macOS?

2025-07-21 Thread Luna via Digitalmars-d-learn
On Monday, 21 July 2025 at 14:10:44 UTC, Serg Gini wrote: On Monday, 21 July 2025 at 13:29:23 UTC, Albert wrote: [...] I agree with Luna that installing from official GitHub Releases are the easiest way. There is also this project: https://code.dlang.org/packages/ldcup regarding serve-d -

Re: How to use D on M2 macOS?

2025-07-21 Thread Luna via Digitalmars-d-learn
On Monday, 21 July 2025 at 13:29:23 UTC, Albert wrote: Hi all, I am completely new to D, wished to try it out and write a small app in it. However, for the last couple hours I am ready to pull my hair out as I have no idea how to compile even a simplest hello world app. I installed ldc and

Re: How to use D on M2 macOS?

2025-07-21 Thread Luna via Digitalmars-d-learn
On Monday, 21 July 2025 at 13:52:52 UTC, Luna wrote: On Monday, 21 July 2025 at 13:29:23 UTC, Albert wrote: Hi all, I am completely new to D, wished to try it out and write a small app in it. However, for the last couple hours I am ready to pull my hair out as I have no idea how to compile ev

Re: Minimal environment for linking Win32 windowed 64bit exes usind LDC2

2025-07-18 Thread Luna via Digitalmars-d-learn
On Friday, 18 July 2025 at 16:50:07 UTC, realhet wrote: On Friday, 18 July 2025 at 15:42:23 UTC, realhet wrote: On Friday, 18 July 2025 at 15:25:04 UTC, Kagamin wrote: ldc has libs in lib/mingw Ok I was doing too much: I uninstalled the whole sdk and it turned out It works miraculously just

Re: basic pointer question

2025-07-11 Thread Luna via Digitalmars-d-learn
On Friday, 11 July 2025 at 22:17:02 UTC, WhatMeWorry wrote: ``` // working function SDL_Texture* changeTextureAccess(SDL_Texture *texture, SDL_TextureAccess newAccess) { // pertinent code only texture = createTexture(renderer, pixelFormat, newAccess, width, height); return textur

Re: Looking for a simple GUI library that works with Vulkan on SDL2

2025-07-08 Thread Luna via Digitalmars-d-learn
On Wednesday, 19 February 2025 at 15:21:19 UTC, Danny Arends wrote: Hey all, I am looking to integrate a GUI library like IMgui / Nuklear into my app that uses Vulkan within SDL2 for rendering so that it can run on Windows, Linux, and Android (https://github.com/DannyArends/CalderaD). I've

Re: Unresolvable dependencies to package

2023-04-17 Thread Luna via Digitalmars-d-learn
On Saturday, 15 April 2023 at 00:48:21 UTC, Mike Parker wrote: On Saturday, 15 April 2023 at 00:42:17 UTC, Mike Parker wrote: I also suggest you visit the issues page for bindbc-imgui and file an issue there: I meant to delete this line. I've filed the issue: https://github.com/BindBC/bindbc