Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^7: Shouldn't references be readonly?

by jcb (Vicar)
on Aug 05, 2020 at 22:18 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2020-12-02 03:58 GMT
Find Nodes?
    Voting Booth?
    How often do you use taint mode?

    Results (28 votes). Check out past polls.