develooper Front page | perl.perl5.porters | Postings from February 2000

[ID 20000220.003] Poss bug in overload 5.004 & 5.005

Thread Previous | Thread Next
From:
Mark Summerfield
Date:
February 20, 2000 10:25
Subject:
[ID 20000220.003] Poss bug in overload 5.004 & 5.005
Message ID:
38B0307E.19AD9196@queenwood.screaming.net
I think that there may be a problem with use overload. I have a method
which when called thus:
	$x->and( $y )
works correctly; but fails when called thus:
	$x & $y
even though I have
	use constant
		...
		'&' => \&and,
		...
and even though all the other overloads work fine.
I did try changing the overload to:
		'&' => \&Math::Logic::and,
but this made no difference.

I have attached 4 files:

test - This is a tiny perl script that will demonstrate the error

linux.txt - This is my perl -V under linux plus the test program's
output

win32.txt - This is my perl -V under Windows plus the test program's
output

Math::Logic - This is my module in which my use overload occurs; I
tested linux with v 1.00 and v 1.01 and windows with v 1.00 and a fixed
v 1.00 (that became v 1.01).


Mark.
_______________________________________________
Mark Summerfield       http://www.perlpress.com
Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About