Disappointing inflexibility of argument passing in D
Tobias Pankrath
tobias at pankrath.net
Tue Feb 11 07:57:31 PST 2014
On Tuesday, 11 February 2014 at 15:10:57 UTC, Carl Sturtivant
wrote:
> void main() {
> //conversions from string part of the definitions of
> Data, Data2
> f( "hello", "bonjour"); //no way to do this ---
> disappointing
> }
>
> See
> http://forum.dlang.org/thread/agstjpezerwlgdhphclk@forum.dlang.org
Function calls are a more complicated case because of overload
resolution.
If f(string, string) is defined, this will a) break silently or
b) require qualification. Both is disappointing, too.
More information about the Digitalmars-d
mailing list