tqchen opened a new pull request, #828: URL: https://github.com/apache/tvm-ffi/pull/828
`NativeFunction<R(Args...)>` and `NativeFunctionView<R(Args...)>` now model the successful result type. Their inline `operator()` returns `R` and throws on error, while `CallExpected()` returns `Expected<R>` for callers that compose errors explicitly. One `FromNative<&Fn>()` accepts named targets returning either `R` or `Expected<R>`. Its noexcept ABI adapter preserves `ffi::Error` and converts `std::exception` to `InternalError`. The change keeps packed callbacks, the raw structural ABI path, and borrowed versus owning lifetime behavior, and updates structural hook aliases and examples to the new contract. -- 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]
