#3 lvalue forced in object method invocation macro
[svn/Cll1h/.git] / demos / advanced-hello-world.c
CommitLineData
5a5eb547 1#include "cll1.h"
2
3program
4{
6e567bcc 5 print("* echo()");
6 echo("Hello"," ","world"," !\n");
7 print("* print()");
8 print("Hello","world","!");
6e567bcc 9 print("* NIL");
10 print("We can print",NULL,"safely.");
bce4b05d 11 NIL="(hic sunt crocodiles)";
f5725936 12 print("We can print",NULL,"safely.");
6e567bcc 13 print("* coalesce():");
bce4b05d 14 print("We can",coalesce("print","everything"),"almost",coalesce(NULL,"anything"),"safely.");
15 echo("Surprisingly ->",NIL," (you can't see this)");
16 print("<- nothing special here.");
6e567bcc 17 print("* OFS");
06ab91f0 18 OFS="";
19 EOL="";
20 print("We","Can","Print","Without","Spaces","BetweenArgs.");
6e567bcc 21 OFS=":";
06ab91f0 22 print("We","can","customize","print.");
f5725936 23 OFS="...";
e91cd880 24 EOL="<--\n";
06ab91f0 25 print("");
f5725936 26 print("* MAYBE ?");
27 repeat(4) print((MAYBE ? "Hello" : "Hi"), (MAYBE ? "world" : "friend"), (MAYBE ? "!" : "?"));
28 print("* WHOKNOWS ?");
29 repeat(4) print((WHOKNOWS ? "Hello" : "Hi"), (WHOKNOWS ? "world" : "friend"), (WHOKNOWS ? "!" : "?"));
5a5eb547 30}
This page took 0.165509 seconds and 4 git commands to generate.