Re: Running unit tests from DUB single file packages

2020-12-21 Thread drug via Digitalmars-d-learn
On 12/21/20 7:31 PM, jmh530 wrote: On Monday, 21 December 2020 at 11:31:49 UTC, drug wrote: [snip] Unfortunately I'm very busy. But I check it again and it turns out that the fix does not resolve the problem completely. This PR just remove the single file from testing so currently dub does

Re: Trying to understand multidimensional arrays in D

2020-12-21 Thread Ali Çehreli via Digitalmars-d-learn
On 12/21/20 8:47 PM, Rekel wrote: > On Monday, 30 January 2017 at 07:33:34 UTC, Ali Çehreli wrote: >> As others have said, D's array definition is natural because unlike >> C's inside-out (or is that outside-in?) syntax, it follows from the >> alias syntax. Replacing History inside main with

Re: Trying to understand multidimensional arrays in D

2020-12-21 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Dec 22, 2020 at 04:47:13AM +, Rekel via Digitalmars-d-learn wrote: [...] > Defending array-notation by giving an example of explicitly not using > declared aliases makes no sense to me. > When I define 2d arrays, or index them, I think in row -> column terms > (often math notation for

Re: Trying to understand multidimensional arrays in D

2020-12-21 Thread Rekel via Digitalmars-d-learn
Small addition, not out of jest; If plug and play consistency given aliases is required (which seems pointless, as they exit to be used), the best solution, which would avoid indexing inconsistency given regular reading order, would be the following; alias Row = [3]int; [1][2][3]int history;

Re: Trying to understand multidimensional arrays in D

2020-12-21 Thread Rekel via Digitalmars-d-learn
On Monday, 30 January 2017 at 07:33:34 UTC, Ali Çehreli wrote: As others have said, D's array definition is natural because unlike C's inside-out (or is that outside-in?) syntax, it follows from the alias syntax. Replacing History inside main with Matrix[], etc.: History history;//

Re: Visual Studio with gtkD

2020-12-21 Thread RedshiftVelocities via Digitalmars-d-learn
That appears to have worked. Thanks!

Re: Visual Studio with gtkD

2020-12-21 Thread frame via Digitalmars-d-learn
On Monday, 21 December 2020 at 17:34:45 UTC, RedshiftVelocities wrote: I'm trying to compile a gtkD program with VisualD. I've been following this guide (https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows) and I can compile just fine directly from the command line. However, in

Visual Studio with gtkD

2020-12-21 Thread RedshiftVelocities via Digitalmars-d-learn
I'm trying to compile a gtkD program with VisualD. I've been following this guide (https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows) and I can compile just fine directly from the command line. However, in VS, I get numerous errors in the form of "Error: module `Main` is in file

Re: Running unit tests from DUB single file packages

2020-12-21 Thread jmh530 via Digitalmars-d-learn
On Monday, 21 December 2020 at 11:31:49 UTC, drug wrote: [snip] Unfortunately I'm very busy. But I check it again and it turns out that the fix does not resolve the problem completely. This PR just remove the single file from testing so currently dub does not run unit tests in the single file

Re: Running unit tests from DUB single file packages

2020-12-21 Thread drug via Digitalmars-d-learn
On 12/20/20 9:31 PM, jmh530 wrote: On Wednesday, 2 December 2020 at 12:51:11 UTC, drug wrote: [snip] Thanks! Let's see if it gets merged or if a slightly more involved solution is needed. Remake it - https://github.com/dlang/dub/pull/2052 This has more chances to be merged Looks like