Pointer to environment.get
Vino
akashvino79 at gmail.com
Wed Aug 30 17:45:11 UTC 2023
On Monday, 28 August 2023 at 10:27:07 UTC, Basile B. wrote:
> On Monday, 28 August 2023 at 10:20:14 UTC, Basile B. wrote:
>> [...]
>
> To go further, the correct code for syntax you wanted to use is
> actually
>
> ```d
> alias Ext_T = string (const char[] a, string b); // define a
> function type
> alias Ext_PT = Ext_T*; // define a function **pointer** type
> Ext_PT ext = &environment.get;
> ```
>
> But as you can see that does not allow to capture the argument.
> Also it only work as AliasDeclaration RHS.
Thank you
More information about the Digitalmars-d-learn
mailing list