Re: Is there any way to compile without executing?

[email protected] Fri, 21 Mar 2025 11:55:52 -0400
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
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:
> [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!