1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="pause">
4 <refname>pause</refname>
5 <refpurpose>中断モード, キーボード入力を待つ</refpurpose>
16 <code>pause</code>モードに切り替えます;
17 関数のコードに挿入すると,<code>pause</code>は関数の実行を中断し,
18 <code>pause</code>のレベル (例: <literal>-1-></literal>)を
20 この時,ユーザは新しいワークスペースにおり,
21 より低いレベルの変数(特にその関数内の全ての変数)が全て利用可能となっています.
22 コールしたワークスペースに戻るには<code>return</code>を入力します.
25 このモードでは, <literal>[...]=return(...) </literal>は
26 引数の変数 <literal>(...)</literal> をコールしたワークスペースに
27 <literal> [...]</literal>という名前の出力として返します.
28 一方, より低いレベルの変数は保護され, 修正することはできません.
31 <literal>pause</literal> はデバッグの際に非常に有用です.
34 このモードはコマンド <literal>"abort"</literal>により破棄することができます.
39 <programlisting role="example"><![CDATA[
42 disp("Thanks to the pause, you can investigate if ''a'' has the right value");
43 disp("Value can be changed too if needed.");
51 <refsection role="see also">
53 <simplelist type="inline">
55 <link linkend="halt">halt</link>
58 <link linkend="return">return</link>
61 <link linkend="abort">abort</link>
64 <link linkend="quit">quit</link>
67 <link linkend="whereami">whereami</link>
70 <link linkend="where">where</link>
73 <link linkend="sleep">sleep</link>