[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Mac::Glue error handlers



On Mon, 20 Nov 2000 00:35:35 +0100, Bart Lateur wrote:

>Your function can accept both. It is pretty common in functions in
>modules, to check the type of arguments argument, and act accordingly. 

Wait a minute. Are we talking about the same thing? Is this "error
handler" a bit like a callback function? Well, then no, I don't think
requiring this dual interface from users is a good idea.

You can use HTML::Parser's (v3) trick, I guess: having a new API, but
the user has to explicitely ask for it when invoking the module.

-- 
	Bart.

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org