Also, compile_string() and compile_file() are available if they're
easier to deal with than casting.
On 2025-03-21 11:29, Marcos Cruz wrote:
will...@welliver.org 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!