Reflection/Get source: Difference between revisions
Content deleted Content added
SqrtNegInf (talk | contribs) m →{{header|Perl 6}}: full path is provided for built-ins |
|||
Line 121:
=={{header|Perl 6}}==
{{Works with|rakudo|2016.11}}
<lang perl6>say &sum.file;</lang>▼
A full path is provided for built-in routines/methods. However for routines exported by pre-compiled modules a precompilation hash is returned, not a proper file path.
<lang perl6>say Date.^find_method("day-of-week").file;</lang>▼
{{out}}
<pre>
SETTING::src/core/Any.pm
SETTING::src/core/Dateish.pm
</pre>
=={{header|Python}}==
|