in reply to Re^10: is ||= threadsafe?
in thread is ||= threadsafe?

That is not a demonstration. Mearly speculation.

I never claimed that it was unsafe, I said I didn't know that it was safe. To support that stance, all I have to demonstrate is that it's possible that it's unsafe. That's what I demonstrated.

If you doubt this, try offering that speculation to p5p in a bug report.

Fallacy. I never said or implied there was a bug, so it's no surprise it wouldn't make for a good bug report.

Yes. Perl internally locks all internal accesses to shared variable internals.

So you knew it was thread safe, but decided to try to catch me in a non-existent lie instead saying so? wtf?

Replies are listed 'Best First'.
Re^12: is ||= threadsafe?
by BrowserUk (Patriarch) on Oct 25, 2010 at 16:24 UTC
    I said I didn't know that it was safe.

    I don't know for sure that when Perl is run on *nix, it doesn't irradiate kittens in the third world, but I don't go around posting such non-information in response to every Perl on Linux question that arises here.

    I never said or implied there was a bug.

    If what you speculated was true--it would be a bug. A bug so common that it would obvious to anyone who spends as much time here as you do.

    The fallacy is the idea that such obvious possibilities were not a fundamental part of the design from the outset.

    So you knew it was thread safe, but decided to try to catch me in a non-existent lie instead saying so? wtf?

    It was possible that you knew of an obscure bug that I have never heard of--it has happened several times before.

    Hence my initially asking for further information. From there, (minus the bits you indelibly erased) ... is on the record.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      I don't go around posting such non-information in response to every Perl on Linux question that arises here.

      Of course not. Like I've already explained, I was seeking information.

      If what you speculated was true--it would be a bug.

      How is locking shared variables before using them a bug? You have to do so in other languages.