First life-signs of type functions
Johannes Loher
johannes.loher at fg4f.de
Tue May 12 17:32:38 UTC 2020
On Tuesday, 12 May 2020 at 16:12:42 UTC, Steven Schveighoffer
wrote:
> I can totally envision this pattern happening:
>
> string foo(string[] symbolnames, alias dummy = __dummy)
> {
> // do something with symbolnames, ignore dummy
> }
>
> to force a type function instead of using CTFE when you want to
> manipulate a compile-time list of strings.
>
Why would you ever do this? To enforce that the function is only
called at compile time? Looks like a hack to a problem we should
have a proper solution for instead.
More information about the Digitalmars-d
mailing list