mirror of
https://github.com/ziglang/zig.git
synced 2024-11-22 04:10:13 +00:00
Updated Glossary (markdown)
parent
c5dbd34d4a
commit
238c9d91a9
@ -24,12 +24,12 @@ Think of containers as where you _declare_ things, which is order-independent, w
|
|||||||
opaque {
|
opaque {
|
||||||
const b = a+1;
|
const b = a+1;
|
||||||
const a = 1;
|
const a = 1;
|
||||||
};
|
}
|
||||||
|
|
||||||
// this is NOT a container
|
// this is NOT a container
|
||||||
// executions are sequential
|
// executions are sequential
|
||||||
doStuff: {
|
do: {
|
||||||
const b = a+1; // ERROR: a is undefined at this point
|
const b = a+1; // error: use of undeclared identifier 'a'
|
||||||
const a = 1;
|
const a = 1;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user