Made Game For the Raylib 6.0 Jam

Kapendev alexandroskapretsos at gmail.com
Sun Jul 19 23:18:43 UTC 2026


On Sunday, 19 July 2026 at 22:49:04 UTC, Dennis wrote:
>> **Find The Bug Section**
>>
>> ```d
>> if (minutes == 1) text = "You played for...\n  {} minute\n  {} 
>> seconds",
>> text = text.fmt(minutes, seconds);
>> ```
>
> I thought it was going to be that `text = x;` gets transformed 
> to `text(x);` through property syntax, but what is that comma 
> doing there and why does the compiler still allow this use of 
> the comma operator?

Thanks for the tips and comments.
The AI could be smarter, but I was afraid that people might find 
it hard to play.

About the bug, yeah, it's the comma. The code does compile with 
it and it skips the fmt function if minutes is not 1.
I think I used ldc41 something, but no idea. I need to check 
again.


More information about the Digitalmars-d mailing list