Re: Skipping clauses in awk macro
"Andreas Bernauer" <[email protected]>
| Newsgroups | gmane.lisp.scheme.scsh |
|---|---|
| Message-ID | <[email protected]> |
> From: Jonathan Hankins <[email protected]> > Is it possible to, at some clause in an awk macro, skip the remaining > clauses > and jump to the point where the next read occurs, like "next" in awk? > > In my ignorance, I tried playing with call/cc, but looking at the way the > macro > is structured, I can't see a continuation that would get me out of the > remaining > clauses, but back to the next call to the reader-exp. I don't know about a "next" feature in scsh awk, but instead of call/cc maybe a boolean state variable helps that is reset at the beginning of every loop and checked in every clause (if true, just return the current state)? Rather a workaround than a solution... -- Andreas Bernauer +++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++ Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl