Herb Sutter

Results 319 comments of Herb Sutter

> The idea is you don't pass an allocator to everything and expect them to use it. You just create a global-ish variable which contains your allocator (you can also...

> > For allocators, I think someone needs to sketch a proposal for use cases and how they could be made to work, and how compatible that design is with...

> The idea is to create a separate syntax for defining and working with "managed" variables, so that proper memory handling is built into the lexical rules for handling such...

At that level of detail it sounds a lot like Verona. The basic idea in Verona is that each isolation region was a group of objects that you had to...

Thanks! There are two things here, a note and a question for each: - Format: This repo uses a lot of hand-formatting here, including for `.cpp2` code. I think the...

[Updated] Thanks! I'm thinking about your examples, but I have a question... I think you're saying you're surprised this doesn't work: ```cpp func: (i: i32) -> i32 = i *...

It's true that there are two related concepts here, "synonym" and "identity"... currently: - Type/function/object aliases are all synonyms (they always have the same meaning as the rhs, as if...

Hi! Sorry it took me so long to get to this one... this one looks like it might be out of date, should I close it for now and you...

Thanks! More generally, Cpp2 doesn't yet support "magic statics" / `static` local variables, whether `constexpr` or not. I think your request is to support a "magic statics" equivalent. I was...

Thanks! What would you suggest as a way to do that? Set up a manually invoked GitHub Action or similar that can be invoked from time to time, which successively...