in reply to Re^4: Constant string reference
in thread Constant string reference

Real code uses introspection. The use of introspection doesn't cause code to cease to be called "real." Mind you, application level code is supposed to delegate this off to a module or such but that doesn't mean the module isn't also "real" or written by non-p5pers.

Replies are listed 'Best First'.
Re^6: Constant string reference
by dave_the_m (Monsignor) on Dec 09, 2004 at 15:55 UTC
    Are you advocating that people should use Internals::SvREADONLY in general production code?

    Dave.

      No, not exactly. I'm just noting that if someone found it useful to write a SomeApplication::ReferenceSection or whatever and found it useful to have things readonly, they might use a function to toggle the readonly flag on their variables.
      Only if they are willing to put up with possible breakage upon perl upgrade. And truly critical production code needs to be vetted anew for each perl upgrade anyway before going live.