1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<refentry version="5.0-subset Scilab" xml:id="quit" xml:lang="en"
3
xmlns="http://docbook.org/ns/docbook"
4
xmlns:xlink="http://www.w3.org/1999/xlink"
5
xmlns:svg="http://www.w3.org/2000/svg"
6
xmlns:ns5="http://www.w3.org/1999/xhtml"
7
xmlns:mml="http://www.w3.org/1998/Math/MathML"
8
xmlns:db="http://docbook.org/ns/docbook">
10
<pubdate>$LastChangedDate$</pubdate>
14
<refname>quit</refname>
16
<refpurpose>Decresce o n�vel de pausa ou termina o Scilab</refpurpose>
20
<title>Seq��ncia de Chamamento</title>
22
<synopsis>quit</synopsis>
26
<title>Descri��o</title>
28
<para>O comando <literal>quit</literal> tem dois significados diferentes
29
dependendo do contexto de chamamento:</para>
33
<term>Se n�o houver <literal>pause</literal> ativo,</term>
36
<para>Ent�o o comando <literal>quit</literal> faz o Scilab terminar,
37
mesmo que o comando seja chamado dentro de uma fun��o.</para>
42
<term>Se houver <literal>pause</literal> ativo,</term>
45
<para>Ent�o o comando <literal>quit</literal> aborta instru��es
46
iniciadas neste n�vel de pausa e termina o n�vel de pausa
54
<title>Exemplos</title>
56
<programlisting role="example">
58
function foo(x),if x then quit,end,endfunction
59
foo(%t) //quits scilab
61
//terminando instru��o iniciada num contexto de pausa
62
function foo(x),if x then quit,end,endfunction
64
foo(%t) //retorna ao n�vel de prompt principal
68
if x then pause, mprintf('P2\n'),end,
72
foo1(%t) //enter com quit no prompt seguinte
78
<title>Ver Tamb�m</title>
80
<simplelist type="inline">
81
<member><link linkend="pause">pause</link></member>
83
<member><link linkend="break">break</link></member>
85
<member><link linkend="abort">abort</link></member>
87
<member><link linkend="exit">exit</link></member>