Hi,

 

is there a method that I can pass a function f and a type signature to and
it returns the return type I can expect from calling f with the given types?
I.e. something like

 

code_returntype(f, (Int64, Float64))

 

and then it would return the type that f would return if called with an
Int64 and Float64. The return type could of course be a union of many types
if the function is not typestable.

 

Thanks,

David 

 

--

David Anthoff

University of California, Berkeley

 

http://www.david-anthoff.com

 

Reply via email to