Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    Patch 2 for RAD Studio 10.4 now available

    Will it compile if you restore the constraint but specify the generic type explicitly instead of relying of type inference?
  2. David Heffernan

    Are we just "Cash Cows"?

    This is just not true.
  3. David Heffernan

    Are we just "Cash Cows"?

    Security is not a property of the language. It's a property of the code. And the code is written by programmers. They determine how secure a piece of code is, not the choice of language. Hard to see how that brings security.
  4. David Heffernan

    Restore Delphi File Associations?

    Yes.
  5. David Heffernan

    Help with string extraction function

    If you don't have a performance bottleneck, make sure that you use a version of the code that is easy to read and maintain.
  6. David Heffernan

    Help with string extraction function

    Do you have a performance bottleneck with this code?
  7. David Heffernan

    Scrollbar creation in C++

    You can get help in the community version I believe. But in any case it's all online.
  8. David Heffernan

    Are we just "Cash Cows"?

    There is no buzz. Where are all the new developers?
  9. David Heffernan

    Are we just "Cash Cows"?

    I'm less convinced that is so.
  10. David Heffernan

    Are we just "Cash Cows"?

    The problem with that is the the problems tend to interact with each other.
  11. David Heffernan

    Are we just "Cash Cows"?

    The point of the book is that adding programmers won't necessarily result in a better output.
  12. David Heffernan

    Are we just "Cash Cows"?

    It's far from that simple. I take it that everybody has read this:
  13. David Heffernan

    FreeAndNil or NilAndFree ?

    I can't reconcile these two statements.
  14. David Heffernan

    FreeAndNil or NilAndFree ?

    That something may be done in the RTL/VCL doesn't mean it is good practise.
  15. David Heffernan

    FreeAndNil or NilAndFree ?

    Nothing can save you at this point.
  16. David Heffernan

    Need to Remove the PixelsPerInch and TextHeight fake properties

    OK, Scaled = False does change things.
  17. David Heffernan

    FreeAndNil or NilAndFree ?

    Destructors must not raise exceptions. My personal view is that if they do then the best course of action is to terminate the process.
  18. David Heffernan

    Need to Remove the PixelsPerInch and TextHeight fake properties

    If you remove PixelsPerInch from the DFM then you'll find that your form layouts break different devs modify forms if their machines use different font scaling (i.e. DPI) settings. In my workplace we handle this by requiring all modifications of forms to be made using a common font scaling setting.
  19. David Heffernan

    Open Type Arrays?

    In the OP you also write an implementation for each different type. So where is the saving?
  20. David Heffernan

    Open Type Arrays?

    It's not double the work.
  21. David Heffernan

    Open Type Arrays?

    I would absolutely not want syntax like that. If that's the way you want to go you can do it today with generics. In an ideal world I'd like to see the generality offered by C++ templates though. That would allow algorithmic programming that is just too painful with generics.
  22. David Heffernan

    Open Type Arrays?

    You mean with the code from OP?
  23. David Heffernan

    Open Type Arrays?

    This seems worse than method overloading to me. There you have compile time branching. Here you have to perform runtime type checking.
  24. Rethinking Delphi Floating Point Control Register Management.pdf
  25. I don't think so. You want to be able to define a default FPCR for new threads, so just making those vars threadvars doesn't achieve that. But in any case, why have threadvars for something that is already part of the thread context? That makes no sense to me.
×