Function Parameters without Names?
stanislav.blinov at gmail.com
Sun Feb 20 09:14:16 UTC 2022
On Saturday, 19 February 2022 at 23:37:01 UTC, Vijay Nayar wrote:
> What is the main motivator to allow parameters with no names?
1) `extern(C) void* malloc(size_t);`
No need for parameter name at all as that is only a declaration.
You don't have an implementation thus don't need a name for the
2) As Ali says, unused parameters (i.e. in template
specializations, virtual function overrides, dummy parameters for
overload resolution purposes, etc.)
More information about the Digitalmars-d-learn