diff options
| author | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:53:04 +0200 |
|---|---|---|
| committer | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:53:04 +0200 |
| commit | adc4b59a3e7c9db6f33670164490830d87331228 (patch) | |
| tree | adc5d21856852bfb5c3cca794a9c07ad476d877e /examples/procedures.fy | |
| parent | 63cf3028445d8d213ffc774f77aafd7283cb4fbd (diff) | |
| parent | 5ab5de91eb0ae6ed9db78a2c8c47ec67f105e504 (diff) | |
Mergebuild-010393-lambda
Diffstat (limited to 'examples/procedures.fy')
| -rw-r--r-- | examples/procedures.fy | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/examples/procedures.fy b/examples/procedures.fy deleted file mode 100644 index cbe2121..0000000 --- a/examples/procedures.fy +++ /dev/null @@ -1,30 +0,0 @@ -#* - * Examples of how to use procedures - *# - -proc foo { - say 1 + a * 3 + b; - my c = 6; -} - -my a = 2, b = 4; - -foo; # Run the procedure. Print out "11\n" -say c; # Print out "6\n"; - -proc bar { - say "I am bar"; - - undef baz; - - proc baz { - say "I am baz"; - } -} - -# Here bar would produce an error because the proc is not yet defined! -# bar; - -bar; # Here the procedure bar will define the procedure baz! -baz; # Now the procedure baz is defined! -bar; # Here the procedure bar will redefine baz again! |
