Anonymous user
Reflection/Get source: Difference between revisions
no edit summary
m (Omit from Rust) |
No edit summary |
||
Line 246:
put getGlobalFunctionCode(func)
-- script text is printed...</lang>
=={{header|Nanoquery}}==
If a program is run from the command line, the absolute path of the source file will be stored in __file__ as a string.
<lang nanoquery>import Nanoquery.IO
println new(File, __file__).readAll()</lang>
=={{header|Perl 6}}==
|