You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes a function uses a parameter only for input or for output. In those cases, the type conversion code can be optimized to convert data in a single direction, rather than assuming that data will need to be converted both to- and from- Perl.
This could be accomplished by creating new types which are optimized for conversion directions. A simple means of indicating this would be to decorate the type names with < and > characters, indicating which direction conversion is required.
For example, >string would convert from Perl to the foreign function, <string would convert from the foreign function to Perl, and <>string would perform bi-directional conversion.
The text was updated successfully, but these errors were encountered:
Sometimes a function uses a parameter only for input or for output. In those cases, the type conversion code can be optimized to convert data in a single direction, rather than assuming that data will need to be converted both to- and from- Perl.
This could be accomplished by creating new types which are optimized for conversion directions. A simple means of indicating this would be to decorate the type names with
<
and>
characters, indicating which direction conversion is required.For example,
>string
would convert from Perl to the foreign function,<string
would convert from the foreign function to Perl, and<>string
would perform bi-directional conversion.The text was updated successfully, but these errors were encountered: