Skip to content

Commit

Permalink
Allow isolated with service-decl
Browse files Browse the repository at this point in the history
Part of #599.
  • Loading branch information
jclark committed Oct 21, 2020
1 parent bab04b4 commit 7f617cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lang/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -8381,7 +8381,7 @@ <h4>Service declaration</h4>

<pre
class="grammar">service-decl :=
metadata
metadata [isolated-qual]
<code>service</code> [[type-descriptor] variable-name] <code>on</code> expression-list object-constructor-block
expression-list := expression (<code>,</code> expression)*
</pre>
Expand All @@ -8400,7 +8400,9 @@ <h4>Service declaration</h4>
<code>attach</code> method of L. The object-constructor-block has the same
semantics as in an object-constructor-expr with a <code>service</code> qualifier
and a type-reference that refers to S. The type S is also used as the type of
the variable declared.
the variable declared. If the service-decl includes <code>isolated</code>, then
it is equivalent to an object-constructor-expr with an <code>isolated</code>
qualifier as well as a <code>service</code> qualifier.
</p>
<p>
A service-decl is initialized as part of module initialization as follows. The
Expand Down

0 comments on commit 7f617cb

Please sign in to comment.