Print itself: Difference between revisions
Content added Content deleted
MaiconSoft (talk | contribs) No edit summary |
(julia example) |
||
Line 45: | Line 45: | ||
$ go run self_print.go |
$ go run self_print.go |
||
</pre> |
</pre> |
||
=={{header|Julia}}== |
|||
The running program's filename is referenced as the builtin PROGRAM_FILE variable in Julia. |
|||
<lang julia>""" Read the program file and print it. """ |
|||
printitself() = print(read(PROGRAM_FILE, String)) |
|||
printitself() |
|||
</lang> |
|||
=={{header|Phix}}== |
=={{header|Phix}}== |