On Sunday, 13 June 2021 at 15:45:53 UTC, Justin Choi wrote:
I've tried looking through the documentation but can't find an
explanation for why you can use it without parenthesis.
https://dlang.org/spec/function.html#optional-parenthesis
(Some exceptions regarding delegates and function pointer
On Sun, Jun 13, 2021 at 03:45:53PM +, Justin Choi via Digitalmars-d-learn
wrote:
> I'm currently learning D right now, and I was wondering why certain
> functions like std.stdio.readln can work both with and without
> parenthesis for the function call. I've tried looking through the
> document
On Sunday, 13 June 2021 at 15:45:53 UTC, Justin Choi wrote:
I'm currently learning D right now, and I was wondering why
certain functions like std.stdio.readln can work both with and
without parenthesis for the function call. I've tried looking
through the documentation but can't find an explan
I'm currently learning D right now, and I was wondering why
certain functions like std.stdio.readln can work both with and
without parenthesis for the function call. I've tried looking
through the documentation but can't find an explanation for why
you can use it without parenthesis.