Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. How did you determine that this difference was due to gender and not some other reason? Personal anecdotes prove little. The fact that your co-workers didn't experience discrimination doesn't mean that others didn't. I mean, by definition, if any did then they wouldn't be your co-workers. I find it so wearing that people like us with our professional work colleagues and life styles think that discrimination doesn't exist because we don't see it in our lives.
  2. The lived reality in the US for many groups is very different from that of white males. Prejudice doesn't mean everybody in a group has the same (worse) experience. It means that overall the experience of one group is significantly worse than others. "I'm sure". How are you sure? This is ridiculous and quite wrong. If this were to be true then it would follow that all men were stronger than all women. Patently not true.
  3. Fair enough. Those aliases are certainly much more transparently named.
  4. They should use AI for moderation
  5. Not on all delphi versions, IIRC. If you want a 32 bit integer then there are types for that. FixedInt and FixedUInt. The whole point of Integer is that it maps to the platform's C int.
  6. Well yes. It was more of a rhetorical question aimed at Thomas.
  7. So yeah, which would have been harder? Changing all such records to use a type other than Integer, or changing all incorrect Pointer/Integer casts?
  8. David Heffernan

    Use-case question for average phone users re: file-sharing

    If you want Q&A that forces people to answer the question, then that's SO. But you don't seem to like SO because it forces people to ask clear questions, and then stay on topic. Which seems to contradict your comments here. I'm confused. Again.
  9. David Heffernan

    Use-case question for average phone users re: file-sharing

    That nobody is me too. I also have a bunch of ripped CDs, and purchased mp3s. Most of my use is with streaming services which clearly don't suck. But we are in a tiny minority. I guess if David is writing an app for old people like us then maybe it will work out. Sure, but this is a forum here, not SO. Yeah, which is why the average user uses streaming services so they don't have to think about this.
  10. David Heffernan

    Use-case question for average phone users re: file-sharing

    Nobody has songs on their mobile devices in that form these days anyway. People use streaming services like Spotify, YT, etc.
  11. The alternative that you propose would have been far worse.
  12. This wasn't a mistake. This reflects the underlying platform. It's wrong to blame Emba for all the programmers using Integer as though it was pointer sized. Your argument is akin to wanting char to be 4 bytes on 64 bit. It's just a non sequitur. There's literally no reason for integer to be pointer sized. It's a completely different thing.
  13. OK, but it would obviously be far easier to just recompile than make some new out of proc add in tech for design time.
  14. Wouldn't they ship 32 and 64 bit IDEs and users could choose which they used. You have to recompile packages for new versions anyway. It would just be a recompile for 64 bit. I don't think it would be so bad. I know that I can compile all the design time packages I use for 64 bit quite easily.
  15. What's the way to replicate MDI like behaviour in VCL today?
  16. Given the number of people that struggle without of memory errors, then I'd say the answer is yes.
  17. Put the python code in a bpl and have everything access it that way. But I guess you'll all be sharing the same python interpreter. I think that's essentially the python design.
  18. Ironically I'd benefit from this but I agree it seems like an odd change of tack having refused to entertain MDI for years now.
  19. David Heffernan

    0/0 => EInvalidOp or NAN ?

    @FabDev yes that's exactly the same issue
  20. David Heffernan

    0/0 => EInvalidOp or NAN ?

    The original question is for Windows. And the program I posted demonstrates behaviour with and without invalid op masked. As stated repeatedly above the original question concerns behaviour that is determined by fp exception masks. @Minox was talking about Android.
  21. David Heffernan

    0/0 => EInvalidOp or NAN ?

    So for the original question that's not an issue because that is for Windows. For @Minox on Android then IsNaN is what is needed.
  22. David Heffernan

    0/0 => EInvalidOp or NAN ?

    Do you understand how fp exceptions masks work?
  23. David Heffernan

    0/0 => EInvalidOp or NAN ?

    The solution is to set the exception mask to unmask fp exceptions that you want converted into runtime exceptions. That said, I don't know how exception masks work on non x86 platforms. Your code has the problem that if the division returns -1 then it will treat that as an error, but what do you think happens when you do -1 / 1? If you are going to hack it the way you are doing then at least use a boolean. Although see below. If your platform doesn't handle exception masks as windows does then use IsNaN.
  24. Imagine not being able to make a 64 bit IDE
  25. David Heffernan

    0/0 => EInvalidOp or NAN ?

    I'm honestly not sure why this topic is still open. It's the exception mask. Something is changing it. You don't have complete control over it. Other modules that are loaded into your process can change it. It's quite messy. It's been covered ad nauseum here, Borland forums, SO, etc. Run this program to demonstrate how the different exception masks influence behaviour: {$APPTYPE CONSOLE} uses System.SysUtils, System.Math; procedure Main; var x, y: Double; Mask: TArithmeticExceptionMask; begin x := 0; y := 0; Mask := GetExceptionMask; SetExceptionMask(Mask + [exInvalidOp]); Writeln(x / y); SetExceptionMask(Mask - [exInvalidOp]); Writeln(x / y); end; begin try Main; except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; Readln; end. For your scenario, when NaN is produced, clearly invalidop is masked. When the exception is raised it is unmasked.
×