Address of a variable: Difference between revisions

m
→‎{{header|Raku}}: 'Perl 6' to Raku
m (syntax highlighting fixup automation)
m (→‎{{header|Raku}}: 'Perl 6' to Raku)
Line 1,792:
=={{header|Raku}}==
(formerly Perl 6)
 
{{works with|Rakudo|2015.12}}
<syntaxhighlight lang=perl6rake>my $x;
say $x.WHERE;
 
Line 1,805:
{{out}}
<pre>7857931379550584425</pre>
How you set the address of a variable (or any other object) is outside the purview of the Perl 6 languageRaku, but Perl 6the 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}}==
2,392

edits