in reply to Re: Problem with constant pragma and some hash definitions
in thread Problem with constant pragma and some hash definitions

instead of prefixing with ampersand, you can force them as a sub call: "E_MESYSTEM()" etc.
  • Comment on Re: Re: Problem with constant pragma and some hash definitions

Replies are listed 'Best First'.
Re: Re: Re: Problem with constant pragma and some hash definitions
by sauoq (Abbot) on Jul 22, 2003 at 02:45 UTC
    instead of prefixing with ampersand, you can force them as a sub call

    Actually, prefixing them with an ampersand does force a sub call and, as Jenda pointed out elsewhere in this thread, that isn't always desirable. Using parens, as you suggest, leaves the constants as candidates for inlining. When they are inlined, they aren't sub calls at all, but substituted at compile time with their value. That's a good thing precisely because it saves you that call overhead.

    -sauoq
    "My two cents aren't worth a dime.";