I'd like to try this macro, but when I try to load it, Slick complains about the "loop" statements. I'm using v11.0.2, is "loop" a new Slick-C command in SlickEdit 2008 or something?
-rdsuel
This was another statement added in SlickEdit 2008 (v13). Here is the documentation that will be in the upcoming release:The generic
loop statement is similar to that found in the Ada and D languages. The following statements are equivalent:
for(;;) { ... }
loop { ... }
Example:
status := search(":","@");
loop {
if ( status ) break;
get_line(line);
messageNwait("found match line="line);
status = repeat_search();
}
Another example:
defmain()
{
i:=0;
j:=0;
loop {
say("test, i="i);
i++;
if (i>1000) {
break;
}
inner: loop {
say("defmain: j="j);
if (j++ > 750) break inner;
}
say("defmain: H1");
if (i < 500) {
continue;
}
say("defmain: H2");
}
}