Swift Proposal: Per-Class Allocators
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Andrew Fryer's Swift Evolution pitch proposes @allocator(A), an attribute that lets a class and its subclasses take their instance memory from a custom ClassAllocator type, plus a module-wide -default-class-allocator flag.