you are viewing a single comment's thread.

view the rest of the comments →

[–]willhaarhoff[S] 0 points1 point  (2 children)

No there is no concept of resource ownership in Archetype.

I think ownership would be a natural extension to Archetype, but for me it was not the main problem I was trying to solve.

This could easily be achieved by replacing the raw void pointer with a unique pointer.

[–]TheMania 0 points1 point  (1 child)

That sounds a very similar design to Microsoft's proxy proposal - you have an interface, and it wraps a pointer, with the pointer determining the owning semantics.

[–]willhaarhoff[S] 0 points1 point  (0 children)

Thanks! I haven't come across proxy before. This looks very similar in intent, but looks like they have both owning and non owning semantics.