Generates another function to access and directly call a function field of a type.
This gets rid of the weird mystruct.func()() when getting and then directly calling a function.
I still generate the plain accessors with a locally qualified prefix thetype/get/function-field, and generate the caller with the locally qualified prefix typetype/call/function-field, this way for no-arg functions you can use mystruct.call/func() when the result type doesn't disambiguate.
Generates another function to access and directly call a function field of a type.
This gets rid of the weird
mystruct.func()()
when getting and then directly calling a function.I still generate the plain accessors with a locally qualified prefix
thetype/get/function-field
, and generate the caller with the locally qualified prefixtypetype/call/function-field
, this way for no-arg functions you can usemystruct.call/func()
when the result type doesn't disambiguate.