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
{{ message }}
This repository was archived by the owner on Nov 13, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 13, 2023. It is now read-only.
In fact, any translation would destroy the identity of the reference.
Giving reference a 1-tuple type will prevent conversions in the case the argument type does not require conversion.
If the argument type requires conversion, the only safe way is to export the reference as an abstract type, and provide functions to access that type from JS.
Activity
cristianoc commentedon Aug 22, 2019
In fact, any translation would destroy the identity of the reference.
Giving reference a 1-tuple type will prevent conversions in the case the argument type does not require conversion.
If the argument type requires conversion, the only safe way is to export the reference as an abstract type, and provide functions to access that type from JS.
Add support for exporting references.
cristianoc commentedon Aug 22, 2019
#238 contains examples on how to export a reference as an abstract type, in case the argument type of the reference requires conversion:
Add support for exporting references.