-
Content Count
3691 -
Joined
-
Last visited
-
Days Won
185
David Heffernan last won the day on April 26
David Heffernan had the most liked content!
Community Reputation
2433 ExcellentTechnical Information
-
Delphi-Version
Delphi 11 Alexandria
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
What does [ref] attribute actually dows
David Heffernan replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Whether or not you want to use asm is not relevant. It's what you do with it that matters. I mean, exactly what you said above would apply equally if you wanted to write the code in pascal. -
What does [ref] attribute actually dows
David Heffernan replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Why would [ref] be needed to use asm? -
What does [ref] attribute actually dows
David Heffernan replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Is there any known use case other than the one demonstrated by FreeAndNil, namely to allow modification of a const param? -
Is it possible to cast an anonymous procedure to a procedure of object ?
David Heffernan replied to dormky's topic in RTL and Delphi Object Pascal
Is there any known use case other than the one demonstrated by FreeAndNil, namely to allow modification of a const param? -
McAfee, like so many AV products, the cure is worse than the disease.
-
Isn't this a well documented file system for which there are multiple open source projects that you can use to support the documentation? More generally, I'd advise you to put more effort into asking questions. Time spent describing what your problem is, what you already know, where you are blocked, etc. is effort you should spend if you want to get something in return.
-
Doesn't sound like it's not that exceptions aren't handled. App exiting is entirely different. How about the details we asked for.
-
Or maybe floating point exceptions are masked so there is no exception. We can't see your code, or know what version you use.
-
Blog: Byte Loss in String-Literal Concatenation
David Heffernan replied to baoquan.zuo's topic in Tips / Blogs / Tutorials / Videos
That makes a lot more sense. Assumed it was common knowledge? I'm not so sure. I think there's still a big underbelly of Delphi coders that don't get this. -
Blog: Byte Loss in String-Literal Concatenation
David Heffernan replied to baoquan.zuo's topic in Tips / Blogs / Tutorials / Videos
My point is that it's behaviour that you don't ever need to know because the correct way to handle byte data is as, well, bytes and not text. So for sure there's an algorithm, but it's not one that anyone actually needs to know. -
Blog: Byte Loss in String-Literal Concatenation
David Heffernan replied to baoquan.zuo's topic in Tips / Blogs / Tutorials / Videos
This way is reliable and works -
Blog: Byte Loss in String-Literal Concatenation
David Heffernan replied to baoquan.zuo's topic in Tips / Blogs / Tutorials / Videos
I mean, you work with strings and do TEncoding.ASCII.GetBytes -
Blog: Byte Loss in String-Literal Concatenation
David Heffernan replied to baoquan.zuo's topic in Tips / Blogs / Tutorials / Videos
I don't see this as helpful to anyone. Use bytes to represent bytes. Use strings to represent text. Don't use ANSI strings. -
Blog: Byte Loss in String-Literal Concatenation
David Heffernan replied to baoquan.zuo's topic in Tips / Blogs / Tutorials / Videos
What is wrong with the world of Delphi programmers that in 2025 there are still people who can't understand the difference between text and bytes? The article you link to goes on and on about text but your data is bytes. Why not just use the correct data type? -
Now we are discussing what the cheap and rubbish version of ChatGPT says about Delphi?