Mark the (deprecated) alloc/free for Array and Ref as private#411
Mark the (deprecated) alloc/free for Array and Ref as private#411mtzguido wants to merge 1 commit intoFStarLang:mainfrom
Conversation
They cannot be removed from the fsti as they are needed for extraction, but marking them private makes them unaccessible to users, instead of just warning.
|
I'm not sure if this buys us much. There are also legitimate reasons to call Reference.alloc, e.g. when providing a (non-extracted) model implementation--such as for the nested-reference-encoding that we're trying out for structures. You can locally undeprecate alloc, but friending is global for the whole module.
Since this took me a second to figure out:
And the declaration in the |
What about moving |
|
Oh I misunderstood your comment I think, friending is global for the client. |
I'd prefer that over friending to be honest. |
They cannot be removed from the fsti as they are needed for extraction, but marking them private makes them unaccessible to users, instead of just warning.