| scope | |
| ACTION: |
start a scope
|
| USE: |
create a block where variables and functions may be locally defined
|
| EXAMPLE: |
: |
sys i=4
scope
sys i=8
'print "inner scope i=" i
end scope
'-----------------
'EQUIVALENT SYNTAX
'=================
scope
{
sys i=8
' print "inner scope i=" i
}
(
sys i=8
'print "inner scope i=" i
)
print "outer scope i=" i 'i=4
|
|
| REMARKS: |
when the scope ends any definitions created within the scope will be forgotten. |
| RELATED: |
blocks
block
exit
repeat
do
while
if
select
|