X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fadvanced-hello-world.c;h=a5475ba5efc3e313d4cf3b51913c0d3210766bf8;hb=a30ccb5a13711904e08ce475aff75b037cab4abb;hp=4b0985900c707a45e1dd8e48ce1a2112039d8e57;hpb=e91cd8804465d035fb231d06874a9e70c7e97f55;p=svn%2FCll1h%2F.git diff --git a/demos/advanced-hello-world.c b/demos/advanced-hello-world.c index 4b09859..a5475ba 100644 --- a/demos/advanced-hello-world.c +++ b/demos/advanced-hello-world.c @@ -8,15 +8,21 @@ program print("Hello","world","!"); print("* NIL"); print("We can print",NULL,"safely."); - NIL="(anything)"; + NIL="(hic sunt crocodiles)"; print("We can print",NULL,"safely."); print("* coalesce():"); - print("We can",coalesce("print","everything"),coalesce(NULL,"everything"),"safely."); + print("We can",coalesce("print","everything"),"almost",coalesce(NULL,"anything"),"safely."); + echo("Surprisingly ->",NIL," (you can't see this)"); + print("<- nothing special here."); print("* OFS"); + OFS=""; + EOL=""; + print("We","Can","Print","Without","Spaces","BetweenArgs."); OFS=":"; - print("We","can","customize","print"); + print("We","can","customize","print."); OFS="..."; EOL="<--\n"; + print(""); print("* MAYBE ?"); repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?")); print("* WHOKNOWS ?");