Re: Try/Catch

new topic     » goto parent     » topic index » view thread      » older message » newer message
dcuny said...
mattlewis said...

I haven't read to the end of this thread yet, but conceptually, finally has been implemented in euphoria:

The primary issue I've got with that approach is that the context (in the local call) can be lost - especially if you're trying to change the state on something and returning a value.

I wouldn't advocate doing that, either. The stuff gets cleaned up automatically whenever it goes away.

dcuny said...

But in truth, finally isn't my main concern. As others have pointed out, there are interesting approaches taken by other languages that are worth exploring.

Definitely. Nevertheless, it's important, I think, to point out that capability, which is a bit outside of the normal IL code paradigm. It's really part of euphoria's garbage collection system, which uses refcounting.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu