Error: variable `impl` cannot be modified at compile time
Steven Schveighoffer
schveiguy at gmail.com
Fri May 13 19:48:04 UTC 2022
On 5/13/22 3:46 PM, Steven Schveighoffer wrote:
>
> What writeln? Your compile trace is missing the original call line, and
> I would say probably more.
Looking at your last commit, I figured it out:
https://github.com/kerisy/archttp/blob/545b3eb738261e92c88b4e4bb664b4fdfb206398/source/archttp/codec/HttpDecoder.d#L31
That's where you are attempting to build an HttpRequestParser at compile
time.
Just use the `__ctfe` trick.
-Steve
More information about the Digitalmars-d-learn
mailing list