Jump to content

David Heffernan

Members
  • Content Count

    3605
  • Joined

  • Last visited

  • Days Won

    177

David Heffernan last won the day on January 25

David Heffernan had the most liked content!

Community Reputation

2361 Excellent

Technical Information

  • Delphi-Version
    Delphi 11 Alexandria

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. David Heffernan

    I keep being off by one

    Even if you don't use a debugger, get your program to print out the intermediate values in the function square. Then compare it to your expectation.
  2. David Heffernan

    record functions with parameters?

    Read the section on index specifiers https://docwiki.embarcadero.com/RADStudio/Sydney/en/Properties_(Delphi)
  3. David Heffernan

    Delphi + Windows + isWine

    What actual problem does this cause? How does this affect what you do?
  4. David Heffernan

    Delphi + Windows + isWine

    I personally want my program to run on Wine. Seems like Crowdstrike is the problem. Do you sign your executables?
  5. No, they are fundamentally different things in terms of implementation.
  6. David Heffernan

    Program works fine but why?

    You might want to start with a beginners book to learn C++ that will take you through all of this learning. And you definitely don't want to be using character arrays when strings exist.
  7. David Heffernan

    Vcl.Themes different in debug vs release

    Your job is to gradually remove code from your app until the behaviour is the same as a simple example. Good luck.
  8. Probably the benchmark code is not telling you anything useful
  9. David Heffernan

    Earlier version of C++ Builder program

    Imagine we are starting at the beginning of this post. What are we to make of what is in this page alone?
  10. David Heffernan

    C#.NET to Delphi code conversion help needed

    Remove packed and it's probably alright.
  11. David Heffernan

    filenames with unicode chars

    The OP
  12. David Heffernan

    filenames with unicode chars

    Recurring theme here is that you think that everything else is at fault when you can't achieve things that others can. Perhaps you need the curiosity to ask why this is.
  13. David Heffernan

    for loop variable value after the loop

    Doesn't always exit with a Break
  14. David Heffernan

    Type inference in assignment but not comparison??

    I actually don't know how that is interpreted by the compiler
  15. David Heffernan

    Type inference in assignment but not comparison??

    This is a really good point, and very nicely expressed. Essentially the whole thing boils down to Delphi literals having ambiguity of type. Sets and arrays use the same syntax. For integers, what type is 1, how can I make sure that it is signed or unsigned, 8 bit, 16 bit etc. And 1.0, is that single or double? Why can't I state this explicitly. Other languages have these facilities, Delphi lags behind in this area.
×