-
Content Count
3701 -
Joined
-
Last visited
-
Days Won
185
Everything posted by David Heffernan
-
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. -
What is this syntax?
David Heffernan replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
This is interop. -
What is this syntax?
David Heffernan replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
Explicit ordinal values tends to be used for interop with external libs. It's rarely useful for pure delphi code. -
StrToFloat () all combinations of decimal separator and lang. settings
David Heffernan replied to bernhard_LA's topic in Algorithms, Data Structures and Class Design
Well, not really. Certainly in my experience when dealing with floating point data, you can just mandate that it doesn't have thousand separators. Perhaps if you are dealing with currency then you'd need to handle thousand separators but for other data it's not necessary. -
StrToFloat () all combinations of decimal separator and lang. settings
David Heffernan replied to bernhard_LA's topic in Algorithms, Data Structures and Class Design
Try passing such a string to StrToFloat and see how it works out for you. -
StrToFloat () all combinations of decimal separator and lang. settings
David Heffernan replied to bernhard_LA's topic in Algorithms, Data Structures and Class Design
So far as I am aware, routines for conversion from string to float do not accept strings with thousand seps so this is just not an issue. -
Memory footprint. InstanceSize is just the instance and not the dynamically allocated data it owns.
-
If you are going to cache them, cache the jpeg stream rather than the decoded image. Then decode the image on demand with LoadFromStream.
-
Isn't it just a REST API? Like so many others? I don't understand why there would need to be anything delphi specific.
-
StrToFloat () all combinations of decimal separator and lang. settings
David Heffernan replied to bernhard_LA's topic in Algorithms, Data Structures and Class Design
That's probably not true. I think I dtoa accepts both, or if not then I modified it. Since I'm in control of the conversion code thats the right way. -
StrToFloat () all combinations of decimal separator and lang. settings
David Heffernan replied to bernhard_LA's topic in Algorithms, Data Structures and Class Design
Yeah I don't do a heap allocation. I use a local fixed length array. -
StrToFloat () all combinations of decimal separator and lang. settings
David Heffernan replied to bernhard_LA's topic in Algorithms, Data Structures and Class Design
I prefer to replace dot or comma with the locale's decimal sep and then use StrToFloat. Although in reality I don't use the Emba conversion functions because they are defective, i.e. not accurate. -
It depends on the locale rather than the os
-
Looks like it. Submit a bug report.
-
EurekaLog vs MadExcept vs manual
David Heffernan replied to Tom F's topic in RTL and Delphi Object Pascal
Subtract $00401000 from the address and look it up in your detailed map file. But yeah, get madExcept or EurekaLog. -
You are concentrating on the time zone, but that's not your issue at all. When you get time from somewhere, you will be able to convert to UTC because you will know the time zone associated with the time. Your problem seems to be that you want to use an authorative time source. You should do research on that rather than worrying about time zone conversion.
-
What source do you want to use for the time, given that you've ruled out the local computer?
-
Can somebody help me to translate a short Delphi console app to C++ Builder?
David Heffernan replied to TurboMagic's topic in General Help
"I need to have XXX translated to YYY" seems a little abrupt to me.