Error: variable `impl` cannot be modified at compile time

zoujiaqing zoujiaqing at gmail.com
Fri May 13 21:06:42 UTC 2022


On Friday, 13 May 2022 at 19:48:04 UTC, Steven Schveighoffer 
wrote:
> 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
Thank you my friend.



More information about the Digitalmars-d-learn mailing list