On Wed, Mar 14, 2001 at 12:22:38PM -0500, barries wrote:
> >     my $ref = {};
> >     expect( $ref, "$ref" );
> > 
> > They are not the same.  Its not uncommon to accidentally stringify a
> > reference, and I'd like to catch that.
> 
> I think this is unstable magic: if you're counting on stringification
> it'll take a crapper.

Yeah, that is the trick isn't it.  And checking to see if a module
overloads strinfity and doing a special case for that is adding a
special case... something we're trying to avoid.

Ok, make it simple.


> especially if you can detect old-style ok() calls and give a helpful
> suggestion like "did you forget to convert from Test::ok to
> Testing::ok", as perl does in some other cases.

How can you tell?  Testing::ok() nromally takes two arguments, so does
Test::ok().  And they look similar.

-- 

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

Too many little pins on CPU confusing it, bend back and forth until 10-20% are
neatly removed. Do _not_ leave metal bits visible!

Reply via email to