Narcissist: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added output and interpreted/compiled remark) |
|||
Line 418: | Line 418: | ||
<!--(notonline)--> |
<!--(notonline)--> |
||
<syntaxhighlight lang="phix"> |
<syntaxhighlight lang="phix"> |
||
printf(1,"\n\n%t\n\n",get_text(command_line()[2],GT_LF_LAST)[ |
printf(1,"\n\n%t\n\n",get_text(command_line()[2],GT_LF_LAST)[1]=gets(0)) |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
|||
⚫ | |||
Can be run using <code>p test.exw < test.exw</code> |
|||
<pre> |
|||
true |
|||
</pre> |
|||
⚫ | |||
Interpreted-only, as is: to allow a compiled version to run, change <code>command_line()[2]</code> to (say) <code>"test.exw"</code><br> |
|||
or maybe <code>substitute(command_line()[2],".exe",".exw")<code>, and ship with/install the src file.</small> |
|||
=={{header|PicoLisp}}== |
=={{header|PicoLisp}}== |