Skip to content

Commit

Permalink
docs, scope: include do-blocks in scope table [close JuliaLang#36837] (
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Jul 29, 2020
1 parent 7fa3a9b commit 7f348c5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/src/manual/variables-and-scoping.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ allowed or not.

The constructs introducing scope blocks are:

Construct | Scope type | Allowed within
----------|------------|---------------
[`module`](@ref), [`baremodule`](@ref) | global | global
[`struct`](@ref) | local (soft) | global
[`for`](@ref), [`while`](@ref), [`try`](@ref try) | local (soft) | global or local
[`macro`](@ref) | local (hard) | global
[`let`](@ref), functions, comprehensions, generators | local (hard) | global or local
| Construct | Scope type | Allowed within |
|:----------|:-----------|:---------------|
| [`module`](@ref), [`baremodule`](@ref) | global | global |
| [`struct`](@ref) | local (soft) | global |
| [`for`](@ref), [`while`](@ref), [`try`](@ref try) | local (soft) | global, local |
| [`macro`](@ref) | local (hard) | global |
| functions, [`do`](@ref) blocks, [`let`](@ref) blocks, comprehensions, generators | local (hard) | global, local |

Notably missing from this table are
[begin blocks](@ref man-compound-expressions) and [if blocks](@ref man-conditional-evaluation)
Expand Down

0 comments on commit 7f348c5

Please sign in to comment.