Re: Alternatives to try/finally code structure

2020-11-24 Thread Christopher Smith
This is substantially lower-level than is probably warranted, but what you're looking for could be implemented by pushing the values onto the stack immediately at the entry point. On Tue, Nov 24, 2020, 15:36 Milles, Eric (TR Technology) < eric.mil...@thomsonreuters.com> wrote: > > since you seeme

RE: Alternatives to try/finally code structure

2020-11-24 Thread Milles, Eric (TR Technology)
> since you seemed to say in the beginning that you did not want to create > objects (if I read this correctly), why creating AutoCloseable instances here > would not pose a problem ?) Best case scenario is that I get the same performance and memory footprint of the original code (included belo

Re: Alternatives to try/finally code structure

2020-11-24 Thread MG
Something along that line, yes :-) (Just wondering, since you seemed to say in the beginning that you did not want to create objects (if I read this correctly), why creating AutoCloseable instances here would not pose a problem ?) Cheers, mg On 23/11/2020 00:45, Milles, Eric (TR Technology) w