added check for lvalue to coalesce() macro (to prevent double evaluation of expressio...
[svn/Cll1h/.git] / demos / advanced-hello-world.c
index a5475ba5efc3e313d4cf3b51913c0d3210766bf8..124788a5f180d5cb9a86f637898fe31d91a900a3 100644 (file)
@@ -7,11 +7,16 @@ program
  print("* print()");
  print("Hello","world","!");
  print("* NIL");
- print("We can print",NULL,"safely.");
+ print("We can print", NULL, "safely.");
  NIL="(hic sunt crocodiles)";
- print("We can print",NULL,"safely.");
- print("* coalesce():"); 
- print("We can",coalesce("print","everything"),"almost",coalesce(NULL,"anything"),"safely."); 
+ print("We can print", NULL, "safely.");
+
+ {
+  str p = "print", a = NULL;
+  print("* coalesce():"); 
+  print("We can", coalesce(p, "everything"), "almost", coalesce(a, "anything"), "safely."); 
+ }
+
  echo("Surprisingly ->",NIL," (you can't see this)");
  print("<- nothing special here.");
  print("* OFS");
This page took 0.128547 seconds and 4 git commands to generate.