Beer28 wrote:I know this sounds silly and simple, but why can't you guys just do a flat out reference count on allocated memory handles in the JIT compilation process?
Beer28 wrote:thank you very much. I honestly read about half of it. Though all of this complexity over easy memory management makes me just want to use new and delete.
Lookout is indeed an amazing app!!!Do you have plans to integrate the functionality of it in the next version of Outlook? That would be fantastic.
Personally I find the using statement in C# to be rather ugly. I am rather impressed by the way the new C++/CLI implements the Dispose pattern to make your code look like trational C++ with automatic/stack allocation. Jason says in the video that the compiler generates a lot of code to do that but I think that's irrelevant becuase if you wanted the lifetime of the object to be controlled you would have to write that code yourself anyway. I couldn't disagree more. Under C++ most destructors were just calling other destructors anyway, and all that's gone with automatic memory management. Thus classes that hold scarce resources and actually need to be disposed ought to be, and in my experience are, somewhat rare. I don't mind having syntax to remind me that this class holds a scarce resource.IU hope the C++/CLI team is smart enough to only provide deterministic finalization of ojects that implement IDisposable, otherwise theyu are generating a look of code for no benefit.