```d
struct Test
{
int n;
float f;
static Test opCall(int n, float f)
{
return Test(n, f);
}
}
void main()
{
Test(1, 2.0);
}
```
This code causes an infinite loop because the `Test(n, f)` inside
the static `opCall` is interpreted as a recursive call to that
sam
Dammit, for some reason any thread I create or reply I post gets
the above title by default, and I don't always realize it before
I click the button. Can a mod delete this and I'll recreate the
thread?
On Wednesday, 26 February 2025 at 18:53:40 UTC, Kapendev wrote:
On Wednesday, 26 February 2025 at 17:00:48 UTC, John C. wrote:
Error (with both commands above, same result):
```
main.d(8): Error: undefined identifier `RAYWHITE`
main.d(9): Error: undefined identifier `LIGHTGRAY`
```
Both RAYWH
On Thursday, 27 February 2025 at 08:10:04 UTC, John C. wrote:
would removing some "hard to parse" constructs in header file
help this situation?
I tried to change
```
#define LIGHTGRAY CLITERAL(Color){ 200, 200, 200, 255 }
// Light Gray
```
To more simpler definition which does not c
On Wednesday, 26 February 2025 at 17:00:48 UTC, John C. wrote:
2. Why main.d version with "Color(...)" replaced by "RAYWHITE"
or "LIGHTGREY" (defined in header) will not compile with
"undefined identifier" error?
I have tested some basic Raylib functionality from examples on
their website and
On Thursday, 27 February 2025 at 08:16:33 UTC, John C. wrote:
On Thursday, 27 February 2025 at 08:10:04 UTC, John C. wrote:
But this change was not helpful, same error occured. Does this
mean that ImportC cannot parse object literals?
Seems like it has a hard time understanding structs. I trie
On Thursday, 27 February 2025 at 12:48:19 UTC, Kapendev wrote:
On Thursday, 27 February 2025 at 08:16:33 UTC, John C. wrote:
On Thursday, 27 February 2025 at 08:10:04 UTC, John C. wrote:
But this change was not helpful, same error occured. Does this
mean that ImportC cannot parse object literal
On Thursday, 27 February 2025 at 12:48:19 UTC, Kapendev wrote:
On Thursday, 27 February 2025 at 08:16:33 UTC, John C. wrote:
On Thursday, 27 February 2025 at 08:10:04 UTC, John C. wrote:
But this change was not helpful, same error occured. Does this
mean that ImportC cannot parse object literal
On Thursday, 27 February 2025 at 13:33:55 UTC, John C. wrote:
all code I have tested worked perfectly.
Of course, I had to rewrite all "RAYWHITE" to "raywhite", etc.,
but I'm happy to have working GUI library now!