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.
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
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
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
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.