Jump to content

David Heffernan

Members
  • Content Count

    196
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by David Heffernan

  1. David Heffernan

    Wow, first time using repeat ... until

    No. The only C++ loop with an interaction statement is for.
  2. David Heffernan

    Getting the Windows version

    I think that the point Angus was making was that he read the text, and did not follow the link. The text seemed to be the first two paragraphs of the blog post, but without mentioning that there was more to be found by following the link. I have to say that I read the post two or three times wondering what it was that you were trying to tell us. Since the text you did include was only part of the story, it would in my view, have been better not to have included any text and just referred us to the offsite link to your blog post. That's at least three people that were confused by the post. Listen to our feedback or not. It's completely voluntary. 😉
  3. David Heffernan

    Limit to reactions

    🤦🏻‍♀
  4. David Heffernan

    Anyone Tried Multi-Threaded Direct2D Using Delphi?

    The Delphi code will look just like the C++ code. I don't think you draw on the canvas at the same time though, the examples show that a lock has to be used.
  5. David Heffernan

    Wow, first time using repeat ... until

    The C++ for loop, in its general form, is trivially translated into a while loop. So for (init; condition; iteration) statement becomes init; while (condition) { statement; iteration; } It is well worth knowing this if you are in the business of translating pieces of code. So in C++ the for loop is syntactic sugar on top of the while loop. In Delphi also the classic for loop can also be trivially expressed as a while loop. This for loop is simpler than that of C++ but it's still just a while loop (condition tested before body executed) with implicit increment. They Pascal repeat loop is like the C++ do loop. They key being that the condition is at the end of the body rather than the beginning.
  6. David Heffernan

    Limit to reactions

    We can only dream.......
  7. David Heffernan

    Any advice when to use FileExists?

    Load into memory, close, then parse is likely wasteful and risks memory exhaustion. I would urge you to choose the simplest solution that meets your needs, at every decision point.
  8. David Heffernan

    Any advice when to use FileExists?

    Why are you so worried about reading from files. It's perfectly normal to open a file, read it, parse as you go, then close. In fact trying to do other than that is just going to create more complexity for you. To what benefit? What is the problem here? What do you see going wrong with the most simple way to read files? It looks like you are inventing a problem where none exists.
  9. David Heffernan

    Delphi compiler need to be opensourced

    I'm just curious. Do either of you have a stopping condition?
  10. David Heffernan

    Any advice when to use FileExists?

    That's not how you do exception handling. You don't need to catch and re-raise. You can just let them float up to wherever in the code knows how to deal with them with finality.
  11. David Heffernan

    Any advice when to use FileExists?

    You shouldn't put checks for parameter validity in every method. Your code will just be full of that and you will drown in clutter.
  12. David Heffernan

    Class inheritance and hides method

    Perhaps you should step back and ask why you want two distinct things to have the same name. That, rather than the banal compilation warning, is surely the real issue here.
  13. David Heffernan

    Delphi compiler need to be opensourced

    You've really raised an army here Alek
  14. David Heffernan

    Delphi compiler need to be opensourced

    Dude, Scotland is literally inside the UK
  15. David Heffernan

    Delphi compiler need to be opensourced

    Open source isn't giving up. It's allowing contributions from outside. Emba would still be in control. The only open source project I have any involvement is Spring4d. Who do you think is the boss of that? It sure ain't me. And that's exactly how it should be. A good open source project has strong management and leadership, and those contributors that can fit in and add to the development effort are facilitated. You don't just hand control to random collaborators. Stefan's point about open source collaborators is spot on. Good programmers aren't going to spend their time on open source projects unless it's rewarding and fun. I certainly could never see myself working with the OP here.
  16. David Heffernan

    Delphi compiler need to be opensourced

    CLX was actually alright. I built a cross platform app with it back in the day and lived for quite some time
  17. David Heffernan

    Delphi compiler need to be opensourced

    Which platform doesn't have good C and C++ compilers?
  18. David Heffernan

    Delphi compiler need to be opensourced

    Those aren't facts though. If you are going to make a claim, back it up with credible evidence. Just because 45 said it, doesn't make it true.
  19. David Heffernan

    Delphi compiler need to be opensourced

    That's surely not a problem with LLVM per se, rather the Delphi compiler on top of LLVM?
  20. David Heffernan

    Delphi compiler need to be opensourced

    Win64 also I believe
  21. David Heffernan

    Code expert for fixing very simple and obvious syntax errors?

    Writing a tool is how I would approach this. Learn a language like Python so that task like this can be done very easily and quickly. Of course, an even better solution is to fix the process that is generating erroneous code in the first place.
  22. David Heffernan

    Code expert for fixing very simple and obvious syntax errors?

    Wouldn't you just add the commas? I mean, how many lines of code do you have with this mistake in?
  23. David Heffernan

    Code expert for fixing very simple and obvious syntax errors?

    Is this the only error that you want to be fixed automatically?
  24. David Heffernan

    Delphi compiler need to be opensourced

    Pretty bad reasoning. If it's for paid customers only, then there's no security in case Emba go bust. "Because we love Delphi more than you do." How to win friends and influence people.
  25. David Heffernan

    PDF Encryption

    I don't think that this is encryption. And in any case, it's probably worth knowing that the password can be removed trivially.
×