in reply to Re^4: Intercepting compile time blocks like BEGIN {}
in thread Intercepting compile time blocks like BEGIN {}

Your concentrating on the "editor does syntax check" use case.

Specifically, I focused the claim that it would allow "automated testing if code can be safely syntax checked without executing code" to show that it's false.

The other use case you mentioned was the ability to trace the special blocks. Sure, that would be a good feature, but your suggested implementation of a command line switch makes no sense.

  • Comment on Re^5: Intercepting compile time blocks like BEGIN {}

Replies are listed 'Best First'.
Re^6: Intercepting compile time blocks like BEGIN {}
by LanX (Saint) on Aug 09, 2010 at 23:46 UTC
    > "automated testing if code can be safely syntax checked without executing code"

    to test if syntax-checking might execute code.

    nothing wrong!

    Cheers Rolf

      The answer to that question is practically always yes, and answering it doesn't impart any useful information.