[Issue 14742] Changing function signatures breaks code
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jun 29 15:04:57 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14742
--- Comment #3 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Walter Bright from comment #2)
> How were you looking for the "target path" string?
ParameterIdentifierTuple
> In any case, a rule that functions cannot become template functions would be
> extremely limiting.
>
> One way to avoid adding optional parameter breakage is to add an overload
> instead. But I suspect that would then break introspection code that is not
> expecting an overload.
I just tried this program:
```
void f(int i) {}
void f(string s) {}
pragma(msg, ParameterTypeTuple!f);
```
It prints (int). I'm not sure if this is a behavior we would want to rely on,
though.
--
More information about the Digitalmars-d-bugs
mailing list