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

CompilerInvocationException

2023-02-25 Thread guacs via Digitalmars-d-learn
Hi, I'm facing this error and I'm not sure why. For context, I'm trying to build a parser for simple mathematical expressions given as strings i.e. "1 + 2". My main experience is in Python and I wanted to explore the D language so I thought of doing this small project as an exercise. The sour