TLDR
Eponymous templates that define a function pointer does not transfer the
function call parameter to the enclosing template for type deduction.
(Note: The term "deduction" is used with template parameters, not
"inference".)
Also note that I am replacing 'enum' w
Hello everyone,
I build a web tool that allows people to upload some files. Those
files should not be public, so I copy them into a folder hidden
away on the filesystem. But, I want an authenticated user to be
able to look at them. Those files are PDFs and mp3/4s. So my idea
was to use an `if
On Tuesday, 10 January 2023 at 12:55:34 UTC, Adam D Ruppe wrote:
It means nothing. The keyword tells the parser a function is
about to begin, which triggers return type inference (exactly
the same as `auto`), but otherwise it is completely ignored.
Sorry to give compelling examples but it can
Makes sense, you wrote a main function which only applies to having a
druntime.
For -betterC, use the libc's main function:
```d
extern(C) void main() {
}
```
On Sunday, 8 January 2023 at 23:59:21 UTC, ryuukk_ wrote:
[...]
Example_03:
```
void main() {
import core.stdc.stdio : printf;
int[] A;
printf("Hello betterC\n");
}
```
```
dmd -betterC -run Example_03
```
Expected result: Failure at compilation stage, owing to
presence of dynamic arr
On 1/10/23 7:55 AM, Adam D Ruppe wrote:
On Sunday, 8 January 2023 at 18:42:58 UTC, Salih Dincer wrote:
I'm wondering 2 things; firstly, does having an enum mean there is no
auto-return? Or could it be CTFE?
It means nothing. The keyword tells the parser a function is about to
begin, which tri
On Tuesday, 10 January 2023 at 12:55:34 UTC, Adam D Ruppe wrote:
On Sunday, 8 January 2023 at 18:42:58 UTC, Salih Dincer wrote:
I'm wondering 2 things; firstly, does having an enum mean
there is no auto-return? Or could it be CTFE?
It means nothing. The keyword tells the parser a function is