Improve spec/function#lazy-params example#2459
Conversation
|
Thanks for your pull request, @ZombineDev! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
24369b4 to
39b3160
Compare
39b3160 to
178bd77
Compare
|
@jacob-carlborg @thewilsonator can you guys help me debug the ddoc failure? I tried various things locally ~2 months ago, but it always seemed to fail for no reason. |
|
this is using void main()
{
import std.stdio : writeln;
void main()
{
int x;
3.times(writeln(x++)); // <<< fails here
writeln("-");
writeln(x);
}
void times(int n, lazy void exp)
{
while (n--)
exp();
}
}which for me fails with |
|
Thanks for looking into this @thewilsonator. Actually I had gotten only so far as the LaTeX problems and I haven't even considered the the problem with |
Please don't. The script already checks for |
Good to know
Ahh, right. |
To better showcase the D's expressiveness.
178bd77 to
cca5fad
Compare
|
It could be related to the |
|
Thanks! |
To better showcase the D's expressiveness.