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

No, that's not right. Internals::functions may be used by user-code but only by code that allows that perl internals are allowed to change from version to version.
That's rather playing with semantics. The OP was presumably talking about real code, not introspection. The p5pers reserve the right to change or completely remove functions in Internals:: between releases.

Dave.

Replies are listed 'Best First'.
Re^5: Constant string reference
by diotalevi (Canon) on Dec 09, 2004 at 15:17 UTC
    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.
      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.