Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    What new features would you like to see in Delphi 13?

    I don't think that's the case. If you need to interface with a C++ codebase, then you need to create either a C wrapper, or a COM wrapper, but in each case you aren't limited to C++Builder. Whichever compiler you use to compile the C++, you compile the C wrapper, or the COM wrapper. The point is that the C or COM wrappers are compiler agnostic. But C++ code is, in general, not compiler agnostic. So you just need to compile your wrapper in the same toolchain as the C++ library. There are actually tools to create such wrappers. I'm thinking of SWIG. But there's no way that there's going to be a Delphi produced which can consume C++ libraries compiled by some arbitrary C++ compiler.
  2. David Heffernan

    What new features would you like to see in Delphi 13?

    Because Delphi 1 could import functions from DLLs.
  3. David Heffernan

    What new features would you like to see in Delphi 13?

    That's inevitable though isn't it. Because OpenCV is written in C++. For which there is no single binary interface.
  4. David Heffernan

    What new features would you like to see in Delphi 13?

    This can already be done, and has been possible since Delphi 1
  5. David Heffernan

    Help for python code

    How much are you prepared to pay? What exactly does the job entail? You may be better asking directly on sites that are designed to put together people looking for contract programmers. Are you asking any more than you did here:
  6. David Heffernan

    Delphi and "Use only memory safe languages"

    It's not safer than C++, it's exactly the same as C++
  7. David Heffernan

    Delphi and "Use only memory safe languages"

    This is so stupid. Delphi and C++ are exactly the same in this regard.
  8. David Heffernan

    Toolbar + ToolButton + TitleBar flicking

    In 2147 people will still be suggesting setting DoubleBuffered true to solve flicker problems rather than fixing the actual problem
  9. David Heffernan

    Toolbar + ToolButton + TitleBar flicking

    Title bar panel is effectively VCL styles because theres no api for that, I think. So you probably just have to suck it up.
  10. David Heffernan

    BringToFront alternative

    Late information boo
  11. David Heffernan

    Delphi 12: internal errors

    You should report these as bugs to Embarcadero, but unfortunately they've been unable to provide a mechanism for reporting bugs for last past few months.
  12. David Heffernan

    Delphi and "Use only memory safe languages"

    I guess ARC per-se wasn't the big problem, it was more the attempt to support ARC compilers and non-ARC compilers with the same codebases??
  13. David Heffernan

    Set dynamic array of records to nil: frees all content?

    Wrong. Setting a dynamic array to nil is identical to setting length to 0 and identical to passing it to Finalize.
  14. David Heffernan

    Delphi and "Use only memory safe languages"

    That doesn't help if you have multiple variables that refer to the same instance which I guess is a more likely scenario for double free.
  15. David Heffernan

    Delphi 12 : Encoding Unicode strange behaviour

    This sounds completely broken. What if the file starts with the sentinel value that indicates that you have a utf8 payload. Why aren't you passing a separate header, and then the payload? And why are you passing utf16 at all. Isn't that just expensive. And if you must pass around utf16 please tell me that you are handling byte order correctly.
  16. David Heffernan

    Delphi and "Use only memory safe languages"

    What's pretty astonishing is that the NSA thinks that Delphi is memory safe! See White House urges developers to avoid C and C++, use 'memory-safe' programming languages | Tom's Hardware (tomshardware.com) I guess the NSA don't know anything about Delphi. obj := TObject.Create; obj.Free; obj.Free; Take that, NSA!
  17. David Heffernan

    Delphi and "Use only memory safe languages"

    Just let me know what you can do with C++ that you can't do with Delphi, in terms of safety
  18. David Heffernan

    Delphi and "Use only memory safe languages"

    No it's not. Not really the point if a government agency will only accept work using tools that meet certain criterion. You can either follow the specification and have a chance of getting the work. Or argue about the specification and be completely ignored. That's just reality.
  19. David Heffernan

    What new features would you like to see in Delphi 13?

    Not according to Embarcadero. According to Embarcadero Delphi is blazing fast because it uses native code. We all know that to be absolute marketing BS and in fact Delphi compilers produce shitty code that often runs very slowly. Yes, my original post was sarcasm.
  20. David Heffernan

    What new features would you like to see in Delphi 13?

    Delphi produces native code, and therefore is fast
  21. David Heffernan

    What new features would you like to see in Delphi 13?

    That's not my example. Nobody wants to do this with a value type because it's a non terminating recursion. Have a look at my example code to see what I'm actually talking about.
  22. David Heffernan

    What new features would you like to see in Delphi 13?

    None of that applies to my example above.
  23. David Heffernan

    Don't use Application.MessageBox

    I don't really follow this. If you have to modify your code to add the message dialog, before you start debugging, then I'm not quite sure why you can't run with a debugger attached. If you are happy to attach the debugger later, why can't you attach it at the start?
  24. David Heffernan

    What new features would you like to see in Delphi 13?

    This isn't really a great example. The sort of thing that I want to do with records, but cannot, is this: type A = record; B = record; A = record function foo: B; end; B = record function bar: A; end; I can get round this using helpers right now, but I don't understand why I can't do this directly as above.
×