March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
13
Task/Scope-modifiers/Bracmat/scope-modifiers-1.bracmat
Normal file
13
Task/Scope-modifiers/Bracmat/scope-modifiers-1.bracmat
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
67:?x {x has global scope}
|
||||
& 77:?y { y has global scope }
|
||||
& ( double
|
||||
=
|
||||
. !y+!y { y refers to the variable declared in myFunc, which
|
||||
shadows the global variable with the same name }
|
||||
)
|
||||
& ( myFunc
|
||||
= y,z { y and z have dynamic scope. z is never used. }
|
||||
. !arg:?y { arg is dynamically scoped }
|
||||
& double$
|
||||
& !x+!y
|
||||
)
|
||||
1
Task/Scope-modifiers/Bracmat/scope-modifiers-2.bracmat
Normal file
1
Task/Scope-modifiers/Bracmat/scope-modifiers-2.bracmat
Normal file
|
|
@ -0,0 +1 @@
|
|||
/(x./(y.x$+y$)) { x and y have lexical scope }
|
||||
Loading…
Add table
Add a link
Reference in a new issue