-
Notifications
You must be signed in to change notification settings - Fork 248
Closed
Labels
Description
If you didn't find answer in existing open/closed issues you may ask here
I tried to make an interface with a binary_t out parameter. Example:
interface TestInterface {
get_data(out binary_t data) -> void
}
The resulting shim code creates a binary_t *data = NULL but then passes that to the interface function.
e.g: m_handler->get_data(data)
It is then impossible in your interface handler to return the data. You can't set *data because the ptr wasn't passed in as a double ptr. Nor can you assign anything to data because it's NULL.
Question is whether or not this is a feature request to be able to support out parameter binary_t or if this is a bug and should be fixed?
As a workaround, I am changing it to an inout parameter.
Steps you didn't forgot to do
- [ x] I checked if there is no related issue opened/closed.
- [ x] I checked that there doesn't exist opened/closed PR which is solving this issue.
- [ x] I looked in documentation if there is related information.
Reactions are currently unavailable