Re: Are exceptions caught in unittests?

2024-02-15 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
This should be working. I don't know what is going on. All I can suggest is to use a debugger to see if it is indeed throwing and then catching.

Are exceptions caught in unittests?

2024-02-15 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
When I tried to catch exceptions in my unit test, I found that exceptions were not thrown or caught in the unit test blocks. So, I cannot use assertThrown at all. Is this a bug or expected behavior that I don't know? Using LDC 1.36.0 on Windows. https://github.com/aferust/evalex/blob/main/sou

Re: Circular enum member references in UDAs

2024-02-15 Thread realhet via Digitalmars-d-learn
On Thursday, 15 February 2024 at 20:10:15 UTC, Paul Backus wrote: On Thursday, 15 February 2024 at 18:12:42 UTC, realhet wrote: There was an attempt to fix it, but it looks like the PR author wasn't able to get it working correctly in all cases. That means I will solve this by putting the UDAs

Re: Circular enum member references in UDAs

2024-02-15 Thread Paul Backus via Digitalmars-d-learn
On Thursday, 15 February 2024 at 18:12:42 UTC, realhet wrote: Hello, Today I tried to upgrade my sources to the latest LDC, but failed with this unfortunate error. ``` import std; struct S{ E e; } enum E { @S(e2) e1, @S(e1) e2 } ``` Looks like someone reported a similar bug in 201

Re: what was the problem with the old post blit operator already ?

2024-02-15 Thread Kagamin via Digitalmars-d-learn
It was mostly fine, such types are not supposed to be immutable, but recently came an idea of reference counted strings, which need to be immutable for being strings.