diff options
author | Pavel Machek <pavel@ucw.cz> | 1999-10-28 21:03:36 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1999-10-28 21:03:36 +0000 |
commit | 41be4444f2f548c5cc135593b2c820180a22ff99 (patch) | |
tree | db23c6c220b8a0304e6e29b07be67ff628099e23 /bird.conf | |
parent | c2250f91c749f563229ad624bbd03053c1d671d0 (diff) |
switch() { } done right.
Diffstat (limited to 'bird.conf')
-rw-r--r-- | bird.conf | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -14,7 +14,7 @@ function callme (int arg1; int arg2;) case arg1 { 2: print "dva"; print "jeste jednou dva"; - [ 3 .. 5 ]: print "tri az pet"; + 3 .. 5: print "tri az pet"; else: print "neco jineho"; } } @@ -40,8 +40,11 @@ prefix px; print "Testing prefixes: 1.2.3.4/18 = " px; print "Testing pairs: (1,2) = " (1,2); + print "What will this do? " [ 1, 2, 1, 1, 1, 3, 4, 1, 1, 1, 5 ]; + print "Testing functions..."; - callme ( 1, 2 ); +# callme ( 1, 2 ); + callme ( 2, 2 ); callme ( 2, 2 ); callme ( 3, 2 ); callme ( 4, 2 ); |