Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/16/19 in all areas

  1. David Schwartz

    Wow, first time using repeat ... until

    I don't really care what it's called. Every language has its quirks. Why does Pascal have three distinct forms of loops? Seems like overkill. And each one has its own limitations. What would you have called it? I'd nominate either "loop" or "repeat" -- but this is ONLY for the C/C++ language.
  2. Can you lock this thread from further posts?
  3. Note that C++11 addes the 'override' keyword to the language, and its use is highly recommended to discover typos at compile-time. If a derived class method wants to override a base class virtual method, an explicit 'override' allows the compiler to validate that the overriding method actually matches the signature of an available base virtual method, if not the compile fails. Without the explicit 'override', a mistyped overriding method would be an overload instead, which can lead to logic errors not detectable until run-time.
  4. You can as well combine both avoiding the hide effect: TBar = class(TFoo) procedure Terminate; reintroduce; overload; end;
  5. Implementing an override to a virtual method the signatures must match. Your error is not from using override, but from changing the signature.
  6. Hmm.. I thing 'override' is wrong, 'reintroduce' have to use! The declaration is different.
  7. Rafael Mattos

    CORS.Enabled?

    @Andrea Magni, Thank you very much! I solved the problem with your answer. Moments before I see your answer, I discovered that the browser sends an OPTIONS before every request to know if the server accepts. I in my ignorance had created an OPTIONS method on the server, returning an empty array and with CORS in the header, with the same url for each method (GET, PUT, ...) and had "solved" the problem. I hope this post helps the beginners, as it helped this beginner. Thank you!
  8. Hmmm... Seeing a lot of code that shows that many people have big problems with it, I get the impression it is an expert skill. Even many people who think they mastered it do it wrong, IME. Indiscriminate use of FreeAndNil() is one sign (code smell) of such imagined mastery.
  9. dummzeuch

    IDE UI inconsistency?

    Are you aware that this is neither the embarcadero support forum, nor the quality portal? If you encounter bugs, you should file bug reports in the latter.
  10. Okay, we will stop the discussion here. You are now discussing so many different topics here that this discussion will not come to a meaningful end. Nearly each and every technical aspect from the Delphi-language can be seen as "somewhat related to the compiler" but this is not the way we define topics here. This might have worked more or less in the old nntp-usenet, but not in a linear web-based forum. So we really have to stop here unless there are really new aspects about open-sourcing the compiler (e.g. the announcement from Embarcadero that they did this...) //edit: Feel free to open another thread to discuss a specific technical topic like ARC or AnsiStrings or ... but please do not squeeze different discussions into a single topic here.
  11. Remy Lebeau

    TOpenDialog.FileName encoding problems on Mac OS

    As they should be. Makes sense, since you are saving to an ANSI database field, so you are invoking a lossy Unicode->ANSI conversion. Because you are still invoking a conversion to ANSI. Have you tried switching the database column to nvarchar, and using TField.AsWideString?
  12. David Heffernan

    Delphi compiler need to be opensourced

    Which platform doesn't have good C and C++ compilers?
  13. Joseph MItzen

    Delphi compiler need to be opensourced

    Really? He was praising them in his blog post.
  14. So is trying to get the Delphi compiler open sourced.
  15. There is FPC, spend your time to help there. Then you will have your compiler
  16. While you antagonize those who will make the actual decision? Votes can be ignored, and have been for years.
  17. begin ... (PRecLine(vList.PList)+0{Index}).VirtualNode := vNode; ... end; Or: {$POINTERMATH ON} ... begin ... PRecLine(vList.PList)[0].VirtualNode := vNode; ... end;
  18. Anders Melander

    Delphi compiler need to be opensourced

    It's not possible to downvote in JIRA.
  19. Mike Torrettinni

    Wow, first time using repeat ... until

    I do the same, use Exit a lot of times to exit quickly with result, no matter what type, boolean, string and integer.
  20. Used my first 'goto' a couple of weeks ago 🙂
×