Re: EURXSC -- Euphoria Routine Exit Status Code idea

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

If anything, we'd want something modern, like exceptions..

I would be fine with "something modern" in principal but I was thinking in terms of a generic solution that would not add any unnecessary processing overhead to the main language engine. I suspect only a small fraction of the existing library routines would even want to take advantage of this feature.

CoJaBo2 said...

If you want to see if the sequence contains the object, why not just search for it before adding it, rather than checking an error code from an unrelated routine?

Perhaps because I really don't want to "see if the sequence contains the object".

I want to see if a particular library routine (add_item was just an example) completed as expected without having to build custom test routines for quasi-core routines. This is the exact same logic as having the exit status code for abort(), but at the internal routine level.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu