Modulinos: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: replaced outdated comment)
m (→‎{{header|Phix}}: made clearer)
Line 1,277: Line 1,277:
=={{header|Phix}}==
=={{header|Phix}}==
There is a builtin for this, which can even be asked to skip an arbitrary number of stack frames and that way find out exactly where it was effectively called from.
There is a builtin for this, which can even be asked to skip an arbitrary number of stack frames and that way find out exactly where it was effectively called from.
<lang Phix>printf(1,"This is %s\n",{{"An Include","Main"}[(include_file()=1)+1]})</lang>
<lang Phix>string mori = iff(include_file()=1?"main":"an include")</lang>


=={{header|PHP}}==
=={{header|PHP}}==