@InexactError(T, value) => InexactError(funcname, T, value)

#1

InexactError expects three args to express “cannot convert value val to type T in function name”: InexactError(name::Symbol, T, val)

I would like to use it this way throw(@InexactError(T, val))
where the name of the enclosing function is inserted as a Symbol.

How may I proceed?

1 Like