Print itself: Difference between revisions
julia example
MaiconSoft (talk | contribs) No edit summary |
(julia example) |
||
Line 45:
$ go run self_print.go
</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}}==
|