On Friday, 14 July 2023 at 14:15:29 UTC, Steven Schveighoffer
wrote:
On 7/14/23 1:51 AM, Cecil Ward wrote:
[...]
So templates don't automatically instantiate, you have to
specify them. And then if your function is inside the template,
to access it, you will need to do:
[...]
I can give y
On 7/14/23 1:23 PM, Pen Hall wrote:
I think i figured out my issue...
The issue was that 'board' is a pointer, and all of the ways I tried to
de-reference it, failed. I just tried the form
`(*board)[number][symbol][letter]` which worked to de-reference it.
`&(*board)[number][symbol][letter]`,
On 14.07.23 18:51, Steven Schveighoffer wrote:
On 7/14/23 12:40 PM, Christian Köstlin wrote:
Would Eponymous Templates
(https://dlang.org/spec/template.html#implicit_template_properties)
work with the wrapping template?
Only if all the functions are named the same as the template. With
ep
On Friday, 14 July 2023 at 17:14:01 UTC, Pen Hall wrote:
On Friday, 14 July 2023 at 16:57:33 UTC, Pen Hall wrote:
Hello!
In my program, I have defined a struct called `Tile` in the
global scope. In my `main()` function I create a 3d array of
`Tile`s called `board`. I then have a function calle
On Friday, 14 July 2023 at 16:57:33 UTC, Pen Hall wrote:
Hello!
In my program, I have defined a struct called `Tile` in the
global scope. In my `main()` function I create a 3d array of
`Tile`s called `board`. I then have a function called
`loopBoard()` that loops through certain parts of `boar
Hello!
In my program, I have defined a struct called `Tile` in the
global scope. In my `main()` function I create a 3d array of
`Tile`s called `board`. I then have a function called
`loopBoard()` that loops through certain parts of `board`. I then
create a reference to the `Tile` struct at the
On 7/14/23 12:40 PM, Christian Köstlin wrote:
Would Eponymous Templates
(https://dlang.org/spec/template.html#implicit_template_properties) work
with the wrapping template?
Only if all the functions are named the same as the template. With
eponymous templates, you no longer get access to a
On 14.07.23 16:15, Steven Schveighoffer wrote:
On 7/14/23 1:51 AM, Cecil Ward wrote:
On Friday, 14 July 2023 at 05:09:58 UTC, Cecil Ward wrote:
On Friday, 14 July 2023 at 05:05:27 UTC, Cecil Ward wrote:
On Friday, 14 July 2023 at 05:03:31 UTC, Cecil Ward wrote:
The way I can see it going is
On 7/14/23 1:51 AM, Cecil Ward wrote:
On Friday, 14 July 2023 at 05:09:58 UTC, Cecil Ward wrote:
On Friday, 14 July 2023 at 05:05:27 UTC, Cecil Ward wrote:
On Friday, 14 July 2023 at 05:03:31 UTC, Cecil Ward wrote:
The way I can see it going is a giant template encompassing pretty
much the w