Re: Is there any way to compile without executing?
Marcos Cruz <[email protected]> Fri, 21 Mar 2025 16:29:11 +0100
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
[email protected] escribió/skribis/wrote/scrit (2025-03-20T23:15:17-0400): > How about something like: > > $ pike -e '(program)"test"' I didn't know that possibility. Now I remember I read something about `(program)` and files in the manual, but didn't used it yet. > $ pike -e 'return catch((program)"test")?1:0' > test.pike:1:Undefined identifier x. > $ echo $? > 1 Clever. I didn't know there's a `catch` function beside the `catch` block. Thank you! -- Marcos Cruz http://programandala.net