-
Content Count
3586 -
Joined
-
Last visited
-
Days Won
176
Everything posted by David Heffernan
-
Generics compiler Error "Incompatible Types"
David Heffernan replied to luebbe's topic in Algorithms, Data Structures and Class Design
I don't understand why you would use TMyList<T:IMyIntf> rather than TMyList<T> here -
Anybody changing FileVersion directly in dproj file?
David Heffernan replied to Mike Torrettinni's topic in General Help
For releases, do you build from the IDE? -
How to use unit BufferedFileStream & FastCopy?
David Heffernan replied to Quarks's topic in General Help
It's impossible to say that SSD is too expensive. It depends entirely on the usage. SSD suits usage that favours speed over volume. HDD is more suited to usage that favours volume over speed. -
How to use unit BufferedFileStream & FastCopy?
David Heffernan replied to Quarks's topic in General Help
Nothing you have described here goes anyvway to achieving that. No, because it's not useful for the problem that you are trying to solve. Avtually I suspect you are solving the wrong problem. My advice is that you elaborate on the problem you face rather than talking about potential solutions. -
How to use unit BufferedFileStream & FastCopy?
David Heffernan replied to Quarks's topic in General Help
What's wrong with asking the system to copy a file? 100% you should not be using this buffered file stream code. -
Have you ever encountered - EXE name's changed by the user's system and also caused DLL loading error?
David Heffernan replied to Edwin Yip's topic in General Help
Well, sometimes I think people say things that aren't correct. And I have had that thought multiple times. -
Have you ever encountered - EXE name's changed by the user's system and also caused DLL loading error?
David Heffernan replied to Edwin Yip's topic in General Help
Nah, I don't really believe anything that you are saying here. -
Have you ever encountered - EXE name's changed by the user's system and also caused DLL loading error?
David Heffernan replied to Edwin Yip's topic in General Help
That's implausible. If you start changing executable and dll filenames then the program will just stop working. -
What it's like to be a Delphi Developer
David Heffernan replied to Joe C. Hecht's topic in Tips / Blogs / Tutorials / Videos
What’s the worst thing about being a developer? Working in that “other” IDE (of course)! That is the part I was referring to. -
What it's like to be a Delphi Developer
David Heffernan replied to Joe C. Hecht's topic in Tips / Blogs / Tutorials / Videos
I love the parts where he says RAD Studio is awesome and Visual Studio is terrible. -
10.4.1+ Custom Managed Records usable?
David Heffernan replied to Darian Miller's topic in RTL and Delphi Object Pascal
Correct. But there are many possible ternary operators. It's the conditional operator, which is an example of a ternary operator. -
10.4.1+ Custom Managed Records usable?
David Heffernan replied to Darian Miller's topic in RTL and Delphi Object Pascal
We should stop referring to the conditional operator as "the" ternary operator. A ternary operator is one with three operands. Just as a binary operator is one with two operands. -
Oh, I am confused. You said you don't want it to run twice.
-
Handlin the message and returning value to the caller
David Heffernan replied to Tommi Prami's topic in Windows API
The sender of the message will receive the return value that you set. Perhaps a bigger problem is that vcl window recreation means that your form's window handle is liable to change during its lifetime. For ipc using windows messages you need to use stable window handles. -
Set OnClick to nil in the event handler and leave it as nil until the program terminates. Then the event handler can never run again. I presume that you want the event to run no more than once during the life of the process. Or is that assumption incorrect.
-
StrToFloat () all combinations of decimal separator and lang. settings
David Heffernan replied to bernhard_LA's topic in Algorithms, Data Structures and Class Design
Correct. And as a developer that does a lot of parsing of scientific / engineering data, I just don't recognise the issue of dealing with thousand seperators. In the data that I process, they just don't appear. You don't bother trying to strip them, you just require the data not to have them. Exactly. It's a mugs game trying to handle data whose formatting is ambiguous, so don't do it. -
StrToFloat () all combinations of decimal separator and lang. settings
David Heffernan replied to bernhard_LA's topic in Algorithms, Data Structures and Class Design
Seriously veering off topic here. Date strings don't go through StrToFloat. -
Apply the settings to the App without having to close it
David Heffernan replied to Johansy's topic in General Help
Write the code to apply the changes when they are made, and not just at load time. -
No StringHelper for saving to file?
David Heffernan replied to PeterPanettone's topic in RTL and Delphi Object Pascal
The question was which framework has methods on a basic string type for loading and saving to file. A collection of strings is not a basic string type. -
No StringHelper for saving to file?
David Heffernan replied to PeterPanettone's topic in RTL and Delphi Object Pascal
No, TStringList is not a basic string type. -
10.4.1+ Custom Managed Records usable?
David Heffernan replied to Darian Miller's topic in RTL and Delphi Object Pascal
OK, I see where you are coming from. I just assumed that implicit in the Q was that any migration was done for the right reasons, rather than for its own sake. -
10.4.1+ Custom Managed Records usable?
David Heffernan replied to Darian Miller's topic in RTL and Delphi Object Pascal
Nobody is suggesting that. The question is for people that are wanting to use the new feature to take advantage of its benefits. -
10.4.1+ Custom Managed Records usable?
David Heffernan replied to Darian Miller's topic in RTL and Delphi Object Pascal
You'd use this functionality to be able to write more concise and cleaner code, in situations where it provided benefit. So the answer to "why should I?" is when there are good reasons to. -
What is this syntax?
David Heffernan replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
You tell me. What is the use here? You have not explained the intention. -
upcoming language enhancements?
David Heffernan replied to David Schwartz's topic in RTL and Delphi Object Pascal
If they released when it was ready, and spent time fixing the broken windows immediately, then they would be able to develop more efficiently. By letting the defects endure, they just store up problems for the future. Technical debt. I don't find a comparison of modern vs historical delphi very instructive. Should be modern delphi vs its peers.