lot of work has been done, but lists are currently broken
[svn/Cll1h/.git] / demos / advanced-hello-world.c
index 7117279b1ba688498733f03a5041103066b38655..07a14b851a91763e7b8a46283dce1f3b48c2e8b7 100644 (file)
@@ -6,15 +6,18 @@ program
  echo("Hello"," ","world","  !\n");
  print("* print()");
  print("Hello","world","!");
- print("* MAYBE ?");
- repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
- print("* WHOKNOWS ?");
- repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
  print("* NIL");
  print("We can print",NULL,"safely.");
+ NIL="(anything)";
+ print("We can print",NULL,"safely.");
  print("* coalesce():"); 
- print("We can",coalesce("print","anything"),coalesce(NULL,"anything"),"safely."); 
+ print("We can",coalesce("print","everything"),coalesce(NULL,"everything"),"safely."); 
  print("* OFS");
  OFS=":";
  print("We","can","customize","print");
+ OFS="...";
+ print("* MAYBE ?");
+ repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
+ print("* WHOKNOWS ?");
+ repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
 }
This page took 0.119017 seconds and 4 git commands to generate.