top | item 45477089 (no title) dmytrish | 4 months ago > pass around the allocator to every function that allocates to the heap.what prevents a library from taking an allocator, saving it hidden somewhere and using it silently? discuss order hn newest simjnd|4 months ago Nothing, but it would be bad design (unless there is a legitimate documented reason for it). Then it's up to you as the developer to exercise your judgment and choose what third-party libraries you choose to depend on. ulbu|4 months ago authors of the library
simjnd|4 months ago Nothing, but it would be bad design (unless there is a legitimate documented reason for it). Then it's up to you as the developer to exercise your judgment and choose what third-party libraries you choose to depend on.
simjnd|4 months ago
ulbu|4 months ago