From: Rico Tzschichholz Date: Tue, 30 Jun 2020 09:43:11 +0000 (+0200) Subject: manual: Update from wiki.gnome.org X-Git-Tag: 0.49.1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ad5524c5e4ce1a73e43361610925ea33db3e4ac;p=thirdparty%2Fvala.git manual: Update from wiki.gnome.org --- 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