Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^11: Shouldn't references be readonly?

by jo37 (Deacon)
on Aug 05, 2020 at 19:48 UTC ( [id://11120352]=note: print w/replies, xml ) Need Help??


in reply to Re^10: Shouldn't references be readonly? (UPDATED)
in thread Shouldn't LITERAL references be readonly? (updated)

This is no answer to my question. My point is: however created, an alias is a reference to something put into a slot of a symbol table entry. I do not see any evidence in your examples against this claim.

UPDATE And then again, a de-referenced reference should behave similar to an alias. AFAICS it does.

Greetings,
-jo

$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$
  • Comment on Re^11: Shouldn't references be readonly?

Replies are listed 'Best First'.
Re^12: Shouldn't references be readonly?
by LanX (Saint) on Aug 05, 2020 at 20:18 UTC
    > put into a slot of a symbol table entry.

    An alias is always a variable true, that's an obvious no-brainer.

    But typeglob mechanisms are only a part of the way to create them.

    Especially in for my $a (@a) { ... } there is no symbol table entry like you claimed. my $a is a private variable and an alias.

    And newer Perl versions allow activating the feature for refaliasing too, again no symbol table.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      Accepted.

      Greetings,
      -jo

      $gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11120352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found