ResourceScope attachment

Remi Forax forax at univ-mlv.fr
Sat Mar 27 12:16:27 UTC 2021


I see ways to add an attachment when creating a scope
(the ref Object in the MemoryScope implementation)
but no way to get that object from the scope.

I'm also wondering if theoretically a VM like native-image (the Substrate VM) can just not create the field "ref" since it's not used as an optimization ?
You also have to be sure that nobody access this field by reflection but this is exactly the kind of information native-image is asking. 

Rémi


More information about the panama-dev mailing list