-----BEGIN PGP SIGNED MESSAGE----- Moin,
On 08-Nov-01 Craig A. Berry tried to scribble about: > At 7:39 PM -1000 11/7/01, Tim Jenness wrote: >>On Wed, 7 Nov 2001, Craig A. Berry wrote: [snip] > Well, here's that complete test before my modifications: > { > for my $test (0, 1) { > $! = 0; > # POSIX::errno is autoloaded. > # Autoloading requires many system calls. > # errno() looks at $! to generate its result. > # Autoloading should not munge the value. > my $foo = $!; > my $errno = POSIX::errno(); > print "not " unless $errno == $foo; > print "ok ", 28 + $test, "\n"; > } > } > > If I understand the comment correctly, it's saying that because > POSIX::errno depends on autoloading, it might corrupt itself if > autoloading sets errno. Therefore it's trying to make sure that > autoloading does *not* set errno, which, as you suggest, may not be a > reasonable expectation, but there it is. Am I reading this right? That is also what I gathered from the test. But then English is one of my weak points as probably anybody knows ;) Cheers, - -- perl -MDev::Bollocks -e'print Dev::Bollocks->rand(),"\n"' dramatically e-enable integrated bandwidth http://bloodgate.com/perl My current Perl projects PGP key available on http://bloodgate.com/tels.asc or via email -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: latin1 iQEVAwUBO+q/fncLPEOTuEwVAQE1awf+I2F/LQgsS6S33KXh8ZlNRVaN3o+d/Q5h LrVgFBUE3XuxJ7WJlIqvVtYMphW1Bpa3B6gi0Y5IGvsf6RI0rqd4zHVJ8VeGlYry TxDol7nQlT7o5wgjAdj5gGhfFhj/3wkOr2sdJLQYEuDzBbISQSH+WubElHHeFTit 9Z7wQ16mThv2LgZYfGOmBJWLbybHxP7GhAgpDx0aQhoWqkHlcxDqa4j9CAiGQX03 d41AMAcMZUHKmfs0nQ2aElTZZtFxHdcmQiYcemk3Fkg/Ry7x6TrCzTIU1XDUOSMF szqZGgQ279NVI8htjO66FjHzB7NFhRBf3ejS0O2gF3JBpeYXPeBFLg== =46yF -----END PGP SIGNATURE-----