tqchen commented on issue #234:
URL: https://github.com/apache/tvm-ffi/issues/234#issuecomment-3503854941
Some notes:
- `ffi::Expected<T>` can be effectively implemented like ffi::Variant
- We forbid T to be ffi::Error
- We can add ffi::Function::CallExpected (naming of CallExpected can be
debated), it simply redirect to the TVMFFISafeCall
```
func : ffi::Function = ...;
ffi::Expected<Any> res = func.CallExpected(a0, a1, a2);
```
- Add ffi::Function::FromTypedExpected (similar to FromTyped, naming can be
debated) that takes `(Args...) -> ffi::Expected<T>` and convery into ffi
function
-
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]