Re: [Maypole] Maypole::Manual::Request typo?

From: Dave Howorth (Dave.Howorth at acm.org)
Date: Wed Jan 26 2005 - 19:24:34 GMT


I replied to Toby:
>> Shouldn't that be "return Maypole::Constants::OK;" ?
>
> Probably, thanks. Though it seems more like a bug to me. IMHO, it would
> be better if Maypole made these constants available automatically
> everywhere they're likely to be used, because failing to declare them is
> very error-prone. If the 'bug' doesn't get fixed, I'll change the doc.

Thinking about it, IMHO a better solution would be to define the
constants in Maypole.pm and NOT export them. So everywhere they are
used, we'd need to write Maypole::OK. That way there could be no
confusion. One less module to maintain, one less use statement scattered
at random, a gadzillion less foolish bugs ....

Cheers, Dave

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 25/01/05

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT