On Tuesday, 30 September 2014 at 08:34:26 UTC, Johannes Pfau wrote:
What if I don't want automated memory _management_? What if I want a
function to use a stack buffer? Or if I want to free manually?

Agreed. This is the common case we need to solve for, but this is memory allocation, not management. I'm not sure where manual management fits into Andrei's scheme. Andrei, could you give an example of, e.g. how toStringz would work with a stack buffer in your proposed scheme?

Another thought: if we use a template parameter, what's the story for virtual functions (e.g. Object.toString)? They can't be templated.

Reply via email to