On Friday, 13 October 2017 at 07:59:36 UTC, Biotronic wrote:
D version that works in CTFE:
Thanks Biotronic! This is just what I had in mind.
On Tuesday, 10 October 2017 at 22:16:00 UTC, sarn wrote:
On Tuesday, 10 October 2017 at 21:38:41 UTC, captaindet wrote:
string a = |q{
firstLine();
if (cond) {
secondLine()
}
};
you could write your own
On Thursday, 12 October 2017 at 16:59:46 UTC, Meta wrote:
On Thursday, 12 October 2017 at 08:08:17 UTC, Igor wrote:
I tried this but Disassembly view shows:
[snip]
Hmm, you're right. I could've sworn that std.regex is
CTFE-friendly but it looks like I was wrong. If it used the GC
instead o
On Thursday, 12 October 2017 at 08:08:17 UTC, Igor wrote:
I tried this but Disassembly view shows:
call std.regex.regex!string.regex
and
call std.regex.replaceAll!(string, char,
std.regex.internal.ir.Regex!char).replaceAll
which means that replaceAll with regex is done at runtime, not
compil
On Wednesday, 11 October 2017 at 14:28:32 UTC, Meta wrote:
On Wednesday, 11 October 2017 at 09:56:52 UTC, Igor wrote:
On Wednesday, 11 October 2017 at 08:35:51 UTC, Walter Bright
wrote:
On 10/10/2017 3:16 PM, sarn wrote:
Works even better in D because it can run at compile time.
Yes, I see n
On 2017-10-11 10:35, Walter Bright wrote:
On 10/10/2017 3:16 PM, sarn wrote:
Works even better in D because it can run at compile time.
Yes, I see no need for a language feature what can be easily and far
more flexibly done with a regular function - especially since what |q{
and -q{ do gives
On Wednesday, 11 October 2017 at 09:56:52 UTC, Igor wrote:
On Wednesday, 11 October 2017 at 08:35:51 UTC, Walter Bright
wrote:
On 10/10/2017 3:16 PM, sarn wrote:
Works even better in D because it can run at compile time.
Yes, I see no need for a language feature what can be easily
and far mo
On Wednesday, 11 October 2017 at 08:35:51 UTC, Walter Bright
wrote:
On 10/10/2017 3:16 PM, sarn wrote:
Works even better in D because it can run at compile time.
Yes, I see no need for a language feature what can be easily
and far more flexibly done with a regular function - especially
since
On 10/10/2017 3:16 PM, sarn wrote:
Works even better in D because it can run at compile time.
Yes, I see no need for a language feature what can be easily and far more
flexibly done with a regular function - especially since what |q{ and -q{ do
gives no clue from the syntax.
On Tuesday, 10 October 2017 at 21:38:41 UTC, captaindet wrote:
string a = |q{
firstLine();
if (cond) {
secondLine()
}
};
you could write your own string processing function according
to your needs
FWIW
string a = |q{
firstLine();
if (cond) {
secondLine()
}
};
you could write your own string processing function according to your
needs to filter the code string, and use it like
string a = inject(q{...})
11 matches
Mail list logo