From 2ad5524c5e4ce1a73e43361610925ea33db3e4ac Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Tue, 30 Jun 2020 11:43:11 +0200 Subject: [PATCH] manual: Update from wiki.gnome.org --- doc/manual/manual.xml | 23 ++++++++++++++++++++--- 1 file 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 @@ return-statement throw-statement try-statement - lock-statement + lock-statement + unlock-statement + with-statement embedded-statement: statement @@ -911,10 +913,25 @@
Lock Statement -Lock statements are the main part of Vala's resource control mechanism. +lock statements are the main part of Vala's resource control mechanism. FIXME: Haven't actually written anything here about resource control. lock-statement: -lock ( identifier ) embedded-statement +lock ( identifier ) [ embedded-statement ] ; +
+ +
+Unlock Statement +unlock statements are the main part of Vala's resource control mechanism. +FIXME: Haven't actually written anything here about resource control. +unlock-statement: +unlock ( identifier ) ; +
+ +
+With Statement +The with statement creates data type scoped blocks which allow implicit member access to the given expression or declaration statement. +with_statement: +with ( [ var | unowned var | type-name) identifier = ] expression ) embedded_statement
Back to Vala Reference Manual -- 2.47.2