+ print("This is demonstration, that nesting of C<<1 repeat(N) { ... } flow-control macro is completely safe:");
+ repeat(i++)
+ {
+ echo("Outer loop is supposed to be done twice: ");
+ repeat(i)
+ {
+ printf("[doing this %d times] ",i);
+ }
+ repeat(0)
+ {
+ printf("[doing this 0 times] ",i);
+ }
+ repeat(-1)
+ {
+ printf("[doing this -1 times] ",i);
+ }
+ repeat(1)
+ {
+ printf("[doing this 1 times] ",i);
+ }
+ print("... finished.");
+ }