Jump to content

Print itself: Difference between revisions

julia example
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}}==
4,108

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.