On Mon, Jun 30, 2025 at 04:51:27AM +0000, Rajesh via Digitalmars-d-learn wrote: [...] > ``` > Error: variable `__capture` cannot be read at compile time > onlineapp.d(27): called from here: `Problem(0).this(1)` > auto compile_time_var = Problem(1); > ``` [...]
This article may help clear up any misunderstanding that may have caused this problem: https://wiki.dlang.org/Compile-time_vs._compile-time T -- "The number you have dialed is imaginary. Please rotate your phone 90 degrees and try again."