Add a new example with resume 65/10265/2
Sylvestre Ledru [Mon, 21 Jan 2013 18:57:51 +0000 (19:57 +0100)]
Change-Id: I1d90f41c15d02c79264d6da36ff6c084302da531

scilab/modules/core/help/en_US/control_flow/resume.xml
scilab/modules/core/help/fr_FR/control_flow/resume.xml

index 53c6a82..40fe4b1 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+ <?xml version="1.0" encoding="UTF-8"?>
 <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="en" xml:id="resume">
     <refnamediv>
         <refname>resume</refname>
@@ -68,6 +68,24 @@ assert_checkequal(b,43);
 // c does not exist
 
 ]]></programlisting>
+        <programlisting role="example"><![CDATA[
+
+// with several function calls
+function foo1()
+  a=1;
+  b=2;
+  c=3;
+  [x,y,z]=resume(a, b, c)
+endfunction
+
+function foo2()
+  foo1()
+  x, y, z // Declared
+endfunction
+
+foo2()
+// x y z does not exist here
+]]></programlisting>
     </refsection>
     <refsection role="see also">
         <title>See Also</title>
index db1c6fd..a6ba958 100644 (file)
@@ -51,6 +51,25 @@ assert_checkequal(b,43);
 // c n'exite pas
 
 ]]></programlisting>
+        <programlisting role="example"><![CDATA[
+
+// Avec plusieurs appels de fonctions
+function foo1()
+  a=1;
+  b=2;
+  c=3;
+  [x,y,z]=resume(a, b, c)
+endfunction
+
+function foo2()
+  foo1()
+  x, y, z // Déclarés
+endfunction
+
+foo2()
+// x y z n'existent pas ici
+]]></programlisting>
+        
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>