Don Wrote:

> ponce wrote:
> > pure double anyfunc(ref double x) { ... }
> > 
> > pure double anyfunc(double[]) { ... }
> > 
> > double[] c = anyfun(a[]) + 2.0*b[];
> > 
> > 
> > 
> > This proposal could be nice for making array operations more useful, but 
> > complicates overloading.
> Related example:
> 
> double [] c = anyfun(a[]) * b[];
> 
> Is this element-wise using the first function, or scalar multiplication 
> using the second?

Just report the ambiguity error.

Reply via email to