Re: error handling and syntax extension

2000-08-17 Thread Graham Barr

On Wed, Aug 16, 2000 at 04:49:15PM -0500, David L. Nicol wrote:
 
 
 or AUTOLOAD can be defined in terms of Ccatch
 and overloaded that way, rather than being its own
 kind of magic.
 
   catch "AUTOLOAD-$classname-$polymorphicsignature" {...

But why should I have to know that a sub I want to call has to
be AUTOLOADed ? That is an implementation detail of a module
that I as a user should not need to know

Graham.



Re: error handling and syntax extension

2000-08-16 Thread David L. Nicol



or AUTOLOAD can be defined in terms of Ccatch
and overloaded that way, rather than being its own
kind of magic.

catch "AUTOLOAD-$classname-$polymorphicsignature" {...




Jonathan Scott Duff wrote:
 
 On Wed, Aug 16, 2000 at 12:15:30PM -0500, David L. Nicol wrote:
  If "catch" can be defined DURING PARSING
 
  and SYNTAX ERRORS are catchable
 
  error handling can be used to define otherwise
  undefined syntax, becoming a macro language.
 
 And AUTOLOAD can go away too!  :-)
 
 -Scott
 --
 Jonathan Scott Duff
 [EMAIL PROTECTED]

-- 
  David Nicol 816.235.1187 [EMAIL PROTECTED]
 Useless use of a void in constant context