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

Re^7: Shouldn't references be readonly?

by jcb (Parson)
on Aug 05, 2020 at 22:18 UTC ( [id://11120377]=note: print w/replies, xml ) Need Help??


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

you are aware that "constructor" isn't even mentioned in your definition? ;)

Yes, that is what I misremembered: perlref calls them "composers" but they act just like constructors. :-)

Calling it a "constructor" is a hint that it does something at runtime, instead of being a literal embedded into the program text. That its return value is mutable should not be a surprise.

  • Comment on Re^7: Shouldn't references be readonly?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-04-24 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found