]> ocean-lang.org Git - ocean/blobdiff - csrc/oceani-tests.mdc
ocean: change program to receive argc and argv
[ocean] / csrc / oceani-tests.mdc
index d5541e9c3e21ea27ddb418d666789d8062c60beb..55e8477468518ee120591502b99ae489c5d94d95 100644 (file)
@@ -282,9 +282,10 @@ Here I break it into two parts, keeping the array code separate.
 
 ###### test: sayhello
 
-       program As Bs astr bbools:
-               A := $As; B := $Bs
-               bbool := bbools == "True"
+       program ac av:
+               A := $av[1]; B := $av[2]
+               astr := av[3]
+               bbool := av[ac-1] == "True"
                print "Hello World, what lovely oceans you have!"
                /* When a variable is defined in both branches of an 'if',
                 * and used afterwards, the variables are merged.