Sorry I accidentaly pressed post,

Hi,

I was wondering whether how i can do implicit conversion at time of 
dispatch.

Here is an example

+(x::A,y::A) = C(x,y)
implicit_convert(::C) = #some operations returning type A

function f(x::A,y::A)
  (x+y)+x
end

in the function f , once x+y is executed a instance of type C will be 
returned, then the next operation is ::C+::A
but as you may see there is no + function defined, so what i want to do is 
i would like to hint compiler to fix the problem by implicitly calling 
implicit_convert.

Thanks




Reply via email to