comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: exit a program
Date: Sun, 02 Aug 2009 10:38:08 -0400
Date: 2009-08-02T10:38:08-04:00	[thread overview]
Message-ID: <wcc4osqmgbz.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: h53vsf$pir$1@news.newsland.it

asd@fdsfs.com (Autoscontro difettoso) writes:

> is there an instruction that stops a program?

In GNAT, look at GNAT.OS_Lib.  You can call OS_Exit or OS_Abort.

In other compilers, you can call "exit" or "abort" via pramga Import.

Alternatively, you can abort the environment task.  Look at
Ada.Task_Identification.  If you call Current_Task during library-level
elaboration, you can save the identity of the env task.

- Bob



      parent reply	other threads:[~2009-08-02 14:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-02 12:13 exit a program Autoscontro difettoso
2009-08-02 12:43 ` Dmitry A. Kazakov
2009-08-03  8:17   ` Maciej Sobczak
2009-08-03  9:45     ` Dmitry A. Kazakov
2009-08-02 14:38 ` Robert A Duff [this message]
replies disabled

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