develooper Front page | perl.perl5.porters | Postings from October 2016

Re: [perl #129933] [PATCH] t/uni/overload.t: Skip hanging test onFreeBSD

Thread Previous | Thread Next
October 24, 2016 13:34
Re: [perl #129933] [PATCH] t/uni/overload.t: Skip hanging test onFreeBSD
Message ID:
On 24 October 2016 at 15:28, Dan Collins <> wrote:
> This seems reasonable. I had expected "fresh_perl" to hide those failures,
> but that seems to be /very/ platform dependent. Let's just skip that test
> altogether.

What about just fixing it?

If we say that you cannot trigger an overload for an object inside an
overload handler that was called by overload to handle that object
then we could prevent this type of error.

IOW before every overload call we would check a global hash to see if
the object was in the hash, if it was then we would die with an
exception. If it was not then we would add it to the hash. When the
overload method we called exited we would remove the object from the
hash. (We could also attach some kind of attribute to the object to
say it was inside of an overload call.)

It would slow down overload methods a touch, but it would not segfault.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About