Address of a variable: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: 'Perl 6' to Raku) |
||
Line 1,792: | Line 1,792: | ||
=={{header|Raku}}== |
=={{header|Raku}}== |
||
(formerly Perl 6) |
(formerly Perl 6) |
||
{{works with|Rakudo|2015.12}} |
|||
<syntaxhighlight lang= |
<syntaxhighlight lang=rake>my $x; |
||
say $x.WHERE; |
say $x.WHERE; |
||
Line 1,805: | Line 1,805: | ||
{{out}} |
{{out}} |
||
<pre>7857931379550584425</pre> |
<pre>7857931379550584425</pre> |
||
How you set the address of a variable (or any other object) is outside the purview of |
How you set the address of a variable (or any other object) is outside the purview of Raku, but the language supports pluggable object representations, and any given representation scheme could conceivably allow an existing address to be treated as an object candidate where that makes sense. Memory-mapped structs are not unreasonable and are likely to be supported on VMs that allow it. |
||
=={{header|RapidQ}}== |
=={{header|RapidQ}}== |