Re: ParameterIdentifierTuple returns empty strings

2020-12-02 Thread Andre Pany via Digitalmars-d-learn
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

Re: ParameterIdentifierTuple returns empty strings

2020-12-02 Thread Adam D. Ruppe via Digitalmars-d-learn
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

Re: ParameterIdentifierTuple returns empty strings

2020-12-02 Thread user1234 via Digitalmars-d-learn
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;

ParameterIdentifierTuple returns empty strings

2020-12-02 Thread Andre Pany via Digitalmars-d-learn
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