summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-06-30 11:43:11 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2020-06-30 12:39:25 +0200
commit2ad5524c5e4ce1a73e43361610925ea33db3e4ac (patch)
treee7400d313430d1e924b03b757f395ebbc052cb40 /doc
parent3d0dce354027e8cdd780445285d3bc5f4318f251 (diff)
downloadvala-2ad5524c5e4ce1a73e43361610925ea33db3e4ac.tar.gz
manual: Update from wiki.gnome.org
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/manual.xml23
1 files changed, 20 insertions, 3 deletions
diff --git a/doc/manual/manual.xml b/doc/manual/manual.xml
index 3eeb9d0cc..1c0c95928 100644
--- a/doc/manual/manual.xml
+++ b/doc/manual/manual.xml
@@ -773,7 +773,9 @@
<para> return-statement</para>
<para> throw-statement</para>
<para> try-statement</para>
-<para> lock-statement</para></listitem></itemizedlist>
+<para> lock-statement</para>
+<para> unlock-statement</para>
+<para> with-statement</para></listitem></itemizedlist>
<para> embedded-statement:</para><itemizedlist><listitem override="none">
<para>statement</para></listitem></itemizedlist></listitem></itemizedlist>
@@ -911,10 +913,25 @@
<section>
<title>Lock Statement</title>
-<para>Lock statements are the main part of Vala's resource control mechanism. </para>
+<para><code>lock</code> statements are the main part of Vala's resource control mechanism. </para>
<para>FIXME: Haven't actually written anything here about resource control. </para><itemizedlist><listitem override="none">
<para>lock-statement:</para><itemizedlist><listitem override="none">
-<para><emphasis role="strong">lock</emphasis> <emphasis role="strong">(</emphasis> identifier <emphasis role="strong">)</emphasis> embedded-statement</para></listitem></itemizedlist></listitem></itemizedlist>
+<para><emphasis role="strong">lock</emphasis> <emphasis role="strong">(</emphasis> identifier <emphasis role="strong">)</emphasis> [ embedded-statement ] <emphasis role="strong">;</emphasis></para></listitem></itemizedlist></listitem></itemizedlist>
+</section>
+
+<section>
+<title>Unlock Statement</title>
+<para><code>unlock</code> statements are the main part of Vala's resource control mechanism. </para>
+<para>FIXME: Haven't actually written anything here about resource control. </para><itemizedlist><listitem override="none">
+<para>unlock-statement:</para><itemizedlist><listitem override="none">
+<para><emphasis role="strong">unlock</emphasis> <emphasis role="strong">(</emphasis> identifier <emphasis role="strong">)</emphasis> <emphasis role="strong">;</emphasis></para></listitem></itemizedlist></listitem></itemizedlist>
+</section>
+
+<section>
+<title>With Statement</title>
+<para>The <code>with</code> statement creates data type scoped blocks which allow implicit member access to the given expression or declaration statement. </para><itemizedlist><listitem override="none">
+<para>with_statement:</para><itemizedlist><listitem override="none">
+<para><emphasis role="strong">with</emphasis> <emphasis role="strong">(</emphasis> [ var | unowned var | type-name) identifier <emphasis role="strong">=</emphasis> ] expression <emphasis role="strong">)</emphasis> embedded_statement</para></listitem></itemizedlist></listitem></itemizedlist>
</section>
</section>
<para>Back to <ulink url="https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual#">Vala Reference Manual</ulink> </para>