On Wednesday, 2 December 2020 at 15:40:09 UTC, Adam D. Ruppe
wrote:
On Wednesday, 2 December 2020 at 11:46:26 UTC, Andre Pany wrote:
[...]
Function pointers don't really have parameter names. They are
allowed for user habit and documentation purposes, but the
compiler mostly* ignores them; t
On Wednesday, 2 December 2020 at 11:46:26 UTC, Andre Pany wrote:
alias fpt = extern(C) nothrow void function(int a, int b);
Function pointers don't really have parameter names. They are
allowed for user habit and documentation purposes, but the
compiler mostly* ignores them; they aren't actua
On Wednesday, 2 December 2020 at 11:46:26 UTC, Andre Pany wrote:
Hi,
I need to retrieve the parameter identifier but only empty
strings are returned:
tuple("", "")
``` d
alias fpt = extern(C) nothrow void function(int a, int b);
void main()
{
import std.traits : ParameterIdentifierTuple;
Hi,
I need to retrieve the parameter identifier but only empty
strings are returned:
tuple("", "")
``` d
alias fpt = extern(C) nothrow void function(int a, int b);
void main()
{
import std.traits : ParameterIdentifierTuple;
pragma(msg, ParameterIdentifierTuple!(fpt));
}
```
Where is