Re: CompilerInvocationException

2023-02-26 Thread Paul Backus via Digitalmars-d-learn
On Sunday, 26 February 2023 at 14:17:50 UTC, ryuukk_ wrote: On Sunday, 26 February 2023 at 07:11:55 UTC, Paul Backus wrote: Since `Expression` contains `Binary` and `Unary`, and `Binary` and `Unary` contain `Expression`, that means `Expression` contains itself--which is not allowed, because it

Re: CompilerInvocationException

2023-02-26 Thread ryuukk_ via Digitalmars-d-learn
On Sunday, 26 February 2023 at 14:17:50 UTC, ryuukk_ wrote: On Sunday, 26 February 2023 at 07:11:55 UTC, Paul Backus wrote: Since `Expression` contains `Binary` and `Unary`, and `Binary` and `Unary` contain `Expression`, that means `Expression` contains itself--which is not allowed, because it

Re: CompilerInvocationException

2023-02-26 Thread ryuukk_ via Digitalmars-d-learn
On Sunday, 26 February 2023 at 07:11:55 UTC, Paul Backus wrote: Since `Expression` contains `Binary` and `Unary`, and `Binary` and `Unary` contain `Expression`, that means `Expression` contains itself--which is not allowed, because it would result in `Expression.sizeof` being infinite. It sho

Re: CompilerInvocationException

2023-02-25 Thread Paul Backus via Digitalmars-d-learn
On Sunday, 26 February 2023 at 02:33:21 UTC, guacs wrote: NOTE: The error is happening when I'm using the SumType and I suspect that I'm using it incorrectly. I am not sure whether this is the specific error that is causing your problem, but there is a mistake in your use of `SumType` in `ex