this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc/ref/spec.md: bring scoping in line with reality

Change-Id: I4b977dbb414304c0600150b8c03445ffefd8786f
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/3520
Reviewed-by: Jonathan Amsterdam <jba@google.com>

+4 -2
+4 -2
doc/ref/spec.md
··· 1615 1615 CUE is lexically scoped using blocks: 1616 1616 1617 1617 1. The scope of a [predeclared identifier](#predeclared-identifiers) is the universe block. 1618 - 1. The scope of an identifier denoting a field or alias 1618 + 1. The scope of an identifier denoting a field 1619 + declared at top level (outside any struct literal) is the package block. 1620 + 1. The scope of an identifier denoting an alias 1619 1621 declared at top level (outside any struct literal) is the file block. 1620 1622 1. The scope of the package name of an imported package is the file block of the 1621 1623 file containing the import declaration. ··· 1695 1697 1696 1698 foo: string // not visible outside mypackage 1697 1699 1698 - Foo :: { // visible outside mypackage 1700 + Foo :: { // visible outside mypackage 1699 1701 a: 1 // visible outside mypackage 1700 1702 B: 2 // visible outside mypackage 1701 1703