On Thursday, 3 October 2019 at 23:47:17 UTC, Brett wrote:
Error: static variable `thompsonFactory` cannot be read at
compile time
std.regex isn't ctfe compatible, alas.
even the ctRegex doesn't work at ctfe; it *compiles* the regex at
compile time, but it is not capable of actually *running*
On Friday, 4 October 2019 at 10:07:40 UTC, kinke wrote:
Have you tried ctRegex?
Yes, just another error about something else that I don't
remember.
Have you tried ctRegex?
auto r = replaceAll!((C)
{
return "X";
}
)(s, regex(`Y`));
Error: static variable `thompsonFactory` cannot be read at
compile time
This is
On Wednesday, 12 June 2019 at 14:09:08 UTC, Newbie2019 wrote:
On Wednesday, 12 June 2019 at 13:53:09 UTC, H. S. Teoh wrote:
On Wed, Jun 12, 2019 at 01:12:58PM +, Newbie2019 via
Digitalmars-d-learn wrote:
Read:
https://wiki.dlang.org/User:Quickfur/Compile-time_vs._compile-time
T
On Wednesday, 12 June 2019 at 13:53:09 UTC, H. S. Teoh wrote:
On Wed, Jun 12, 2019 at 01:12:58PM +, Newbie2019 via
Digitalmars-d-learn wrote:
Read:
https://wiki.dlang.org/User:Quickfur/Compile-time_vs._compile-time
T
Thanks for the tips.
I move the static array into local var then it
On Wed, Jun 12, 2019 at 01:12:58PM +, Newbie2019 via Digitalmars-d-learn
wrote:
> https://run.dlang.io/is/s4cfiv
>
> onlineapp.d(23): Error: static variable A cannot be read at compile time
> onlineapp.d(23): Error: cannot implicitly convert expression 1 of type int
> to int*
>
> I see no
https://run.dlang.io/is/s4cfiv
onlineapp.d(23): Error: static variable A cannot be read at
compile time
onlineapp.d(23): Error: cannot implicitly convert expression 1 of
type int to int*
I see no reason the code should not work, and the second error
message make no sense.
please