NIL, OFS, EOL, coalesce()
[svn/Cll1h/.git] / demos / advanced-hello-world.c
index e855e5e9d2894a8a29bf38d287dc9fe800ea7ebb..7117279b1ba688498733f03a5041103066b38655 100644 (file)
@@ -2,9 +2,19 @@
 
 program
 {
- echo("Hello ",NULL," ","world","  ! ");
- print("Hello", "world",NULL,"!");
+ print("* echo()");
+ 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.");
+ print("* coalesce():"); 
+ print("We can",coalesce("print","anything"),coalesce(NULL,"anything"),"safely."); 
+ print("* OFS");
+ OFS=":";
+ print("We","can","customize","print");
 }
This page took 0.124821 seconds and 4 git commands to generate.