From 41be4444f2f548c5cc135593b2c820180a22ff99 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Thu, 28 Oct 1999 21:03:36 +0000 Subject: switch() { } done right. --- bird.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bird.conf') diff --git a/bird.conf b/bird.conf index b1220c32..3b8f6a7b 100644 --- a/bird.conf +++ b/bird.conf @@ -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 ); -- cgit v1.2.3