Jump to content

David Heffernan

Members
  • Content Count

    3534
  • Joined

  • Last visited

  • Days Won

    175

Posts posted by David Heffernan


  1. 21 hours ago, David Schwartz said:

    C++ has had inline var declarations forever, that's true; although I disagree with your conclusion, mainly because I never saw them used much that way when I worked with C++. I even tried using them occasionally; I found them quite clunky to use except for relatively long lists of operations on the same base object.

    Given that you weren't aware of using, it seems that you may not be fluent and experienced with C++. Are you sure you are best placed to be offering critiques of the language?

     

    Certainly my experience of using local variables in C++ differs greatly from yours. It is incredibly valuable in my experience to declare local variables at the point of use and with a narrow scope. 

    • Like 4

  2. I would have imagined that you'd want some coordination, not everybody having their own copies, all different. Also, git in particular, and dvcs in general are very complex. You sure you want to throw that at your users. But hey, what do I know about your needs. Nothing. 

     

    If you want to use git then go ahead. For instance with libgit2. 

    • Like 1

  3. 1 hour ago, Kas Ob. said:

    Debugger after all should not be altering the debugged application allocated memory without explicit user interaction.

    That's not right. In order to evaluate expressions the debugger needs to execute code in the target process. Which may lead to allocations. 

     

    It's a defect that the IDE / debugger leak such objects, but they can't do their job if they can't execute code and perform allocations in the target process. 

    • Like 2

  4. 35 minutes ago, Clément said:

    If I don't use timers I will have to depend on messages to flush. So I might end up with a lot of "unflushed" log. I would depend on the client to call a "flush logs", that would be wrong.

    No you won't. There are plenty of timer free solutions I would expect. Very hard to give advice without context. And very hard to explain why messages are missing with only a partial extract of code.

     

    Anyway, good luck. 

×