in reply to Re^2: catch "use Inline::C" death - multiple+dynamic code blocks
in thread catch "use Inline::C" death

The advantage of "use Inline C => ..." is that it happens at compile-time when there is still a chance to declare functions for use further down in the module. Otherwise, perl code later in the module (as it is being compiled) won't know that the XS functions exist, forcing you to use parentheses when calling them.

This advantage might not apply to that many people, but I'm guessing that was why it was done as a BEGIN behavior.

  • Comment on Re^3: catch "use Inline::C" death - multiple+dynamic code blocks

Replies are listed 'Best First'.
Re^4: catch "use Inline::C" death - multiple+dynamic code blocks
by bliako (Abbot) on Jun 20, 2024 at 18:21 UTC

    thank's, it is clearer now. I wonder still if bind() is safe.not important though.