Optimization when using a 2-dimensional array of objects

2024-03-21 Thread Liam McGillivray via Digitalmars-d-learn
In the [game I am currently making](https://github.com/LiamM32/Open_Emblem/blob/master/oe-raylib/source/app.d), I have a `Map` class (actually a combination of an interface & class template, but I'll call it a "class" for simplicity), in which there will probably be only one instance running at a

Re: Reworking the control flow for my tactical role-playing game

2024-03-21 Thread Liam McGillivray via Digitalmars-d-learn
On Thursday, 21 March 2024 at 16:48:39 UTC, Steven Schveighoffer wrote: On Sunday, 17 March 2024 at 00:14:55 UTC, Liam McGillivray wrote: As many of you know, I have been trying to write a tactical role-playing game (a mix of turn-based stategy & RPG) in D. This is the furthest I have ever gott

Re: DFLAGS and DMD Windows

2024-03-21 Thread Carl Sturtivant via Digitalmars-d-learn
On Thursday, 21 March 2024 at 18:17:00 UTC, Carl Sturtivant wrote: On Wednesday, 20 March 2024 at 22:53:13 UTC, Carl Sturtivant wrote: Is it me, or does the [DFLAGS environment variable](https://dlang.org/dmd-windows.html#environment) have no effect on DMD. ``` dmd --version DMD64 D Compiler v

Re: ImportC GUID compilation problem with some Windows headers

2024-03-21 Thread Carl Sturtivant via Digitalmars-d-learn
On Thursday, 21 March 2024 at 22:33:17 UTC, Dave P. wrote: I filed a bug for this: https://issues.dlang.org/show_bug.cgi?id=24447 I haven’t tried on a windows box and this is just from me grepping through header files, but maybe try to `#define EXTERN_C` as nothing in the meantime? I'll gi

Re: ImportC GUID compilation problem with some Windows headers

2024-03-21 Thread Dave P. via Digitalmars-d-learn
On Thursday, 21 March 2024 at 18:19:58 UTC, Carl Sturtivant wrote: On Thursday, 21 March 2024 at 00:06:56 UTC, Carl Sturtivant wrote: ```C EXTERN_GUID(IID_IBlahBlahBlah, 0xabcdef12, 0x11d2, 0xab3a, 0xc0, 0x4f, [...] ); ``` Has anyone successfully compiled an EXTERN_GUID declaration like thi

Re: DFLAGS and DMD Windows

2024-03-21 Thread Carl Sturtivant via Digitalmars-d-learn
On Wednesday, 20 March 2024 at 22:53:13 UTC, Carl Sturtivant wrote: Is it me, or does the [DFLAGS environment variable](https://dlang.org/dmd-windows.html#environment) have no effect on DMD. ``` dmd --version DMD64 D Compiler v2.107.0 ``` Anyone?

Re: ImportC GUID compilation problem with some Windows headers

2024-03-21 Thread Carl Sturtivant via Digitalmars-d-learn
On Thursday, 21 March 2024 at 00:06:56 UTC, Carl Sturtivant wrote: ```C EXTERN_GUID(IID_IBlahBlahBlah, 0xabcdef12, 0x11d2, 0xab3a, 0xc0, 0x4f, [...] ); ``` Has anyone successfully compiled an EXTERN_GUID declaration like this in a Windows header with ImportC using some C macro trickery for

Re: Reworking the control flow for my tactical role-playing game

2024-03-21 Thread Steven Schveighoffer via Digitalmars-d-learn
On Sunday, 17 March 2024 at 00:14:55 UTC, Liam McGillivray wrote: As many of you know, I have been trying to write a tactical role-playing game (a mix of turn-based stategy & RPG) in D. This is the furthest I have ever gotten in making an interactive program from the main function up. Right now