On Tuesday, 17 May 2016 at 06:56:36 UTC, rikki cattermole wrote:
On 17/05/2016 6:55 PM, chmike wrote:
Hello,
The nice and handy documentation of dlang doesn't provide any
info on
the core.sys. How can I find out all the things that are in
there ?
https://github.com/dlang/druntime/tree/maste
Greetings.
The following code works:
void main() {
passfunc(&func);
}
void passfunc(void function(string) f) {
f("Hello");
}
void func(string str) {
import std.stdio : writeln;
writeln(str);
}
Now if I change passfunc's signature to "void passfunc(lazy void
function(string) f
On Sunday, 10 April 2016 at 19:02:06 UTC, Alex Parrill wrote:
A parameter declared as `lazy T` has the type `T delegate()`,
which, when called, evaluates the expression that was passed
into the function.
So effectively, this:
void foo(lazy int x) { auto i = x(); }
foo(a+b);
Is the same as
On Sunday, 4 June 2017 at 18:15:36 UTC, Russel Winder wrote:
On Sun, 2017-06-04 at 17:56 +0200, Jacob Carlborg via
Digitalmars-d- learn wrote:
On 2017-06-04 07:44, Jesse Phillips wrote:
> What is your expected behavior? Throw an exception? You can't
> really
> append an absolute path to another