On Thu, Jan 09, 2003 at 11:15:49PM -0500, John Siracusa wrote:
> On 1/9/03 10:10 PM, Michael G Schwern wrote:
> > I would assume it to be a compiler hint via subroutine attribute.
> > 
> >   sub debug ($msg) is off {
> >     print STDERR $msg;
> >   }
> > 
> > some "this subroutine is a no-op if a flag is set" attribute.
> 
> Hm, not quite as convenient as setting a package global (constant)
> somewhere.  Maybe that same "off" bit could be set "from a distance" at
> compile time?

That would be the "if a flag is set" part.  Point is, its easily handled
by some sort of subroutine attribute which looks at some flag somewhere.

'off' was a bad name for it.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One

Reply via email to