1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
str d (where:str) {
print( "in D ", where, "\n")
where = "d"
print( "in D ", where, "\n")
}
str c ( ) {
print( "in C ", where_g, "\n")
where_g = "c"
print( "in C ", where_g, "\n")
}
str b ( where:str ) {
print( "in B ", where, "\n")
where = "b"
print( "in B ", where, "\n")
}
str a( where:str ) {
print( "in A ", where, "\n")
where = "a"
b( where )
print( "in A ", where, "\n")
}
where: str = "global"
print( "in global ", where, "\n")
a( where )
print( "in global ", where, "\n")
global where_g:str
c( )
print( "in global ", where_g, "\n")
|