comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Aborting a recursive subprogram by an exception
Date: Thu, 28 Aug 2014 22:26:55 +0300
Date: 2014-08-28T22:26:55+03:00	[thread overview]
Message-ID: <ltnvq2$9v1$1@speranza.aioe.org> (raw)

See also
http://stackoverflow.com/questions/25556441/aborting-a-recursive-subprogram-in-the-middle

If I want to abort a recursive subprogram in the middle, is throwing an
exception from it a good way to do this?

I am not sure whether exception optimizations allowed by Ada RM may not
nullify some external actions of the subprogram (such as modifying global
variables) which are before throwing the exception.

Will it work with exceptions the right way?

-- 
Victor Porton - http://portonvictor.org

             reply	other threads:[~2014-08-28 19:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-28 19:26 Victor Porton [this message]
2014-08-28 19:59 ` Aborting a recursive subprogram by an exception Victor Porton
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox