sanko / Affix.pm

A Foreign Function Interface eXtension for Perl
https://metacpan.org/dist/Affix
Artistic License 2.0
1 stars 0 forks source link

Magical variables bound to exported values #14

Closed sanko closed 1 year ago

sanko commented 1 year ago

Allow vars exported from libs to be imported as an SV*.

Magic could be used to curry value back and forth instead of forcing devs to use memmove, sv2ptr, etc. I'm working in a local branch but Variable::Magic is a good stopgap because it keeps context through threading without having to do it myself.