-
Content Count
3737 -
Joined
-
Last visited
-
Days Won
188
Everything posted by David Heffernan
-
operator overloding Equal vs Multiply
David Heffernan replied to Eugine Savin's topic in RTL and Delphi Object Pascal
It doesn't seem to me to be stupid to want to use arrays and operators together. -
How do I find out in which Delphi version a certain RTL/VCL change was implemented?
David Heffernan replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
You must have all the versions that you use, so you can answer this by inspection. -
You can tell it must be stdcall since that is the only convention supported by classic VB.
-
We use DUnitX and it discovers all our silly mistakes before release
David Heffernan replied to Lars Fosdal's topic in DUnitX
I know I go on about this but it's really important, in my view, to stress that the testing framework doesn't discover the bugs. It's the developer that writes good tests that discover the bugs. You need a testing framework to help manage the test code. But the strength of the test is always the quality of the test code rather than the framework. There are plenty of libraries that ostensibly have test suites but are full of bugs because the test suites are incomplete. -
How can I get the list of registered interfaces and their GUIDs in a Delphi 2007 application?
David Heffernan replied to dummzeuch's topic in RTL and Delphi Object Pascal
What about the people who you are asking for help? I would post on one site first, and if you don't get a good response, then post elsewhere, with link to the first place.- 8 replies
-
- delphi-2007
- rtti
-
(and 2 more)
Tagged with:
-
How can I get the list of registered interfaces and their GUIDs in a Delphi 2007 application?
David Heffernan replied to dummzeuch's topic in RTL and Delphi Object Pascal
There are no newsgroups here.- 8 replies
-
- delphi-2007
- rtti
-
(and 2 more)
Tagged with:
-
How can I get the list of registered interfaces and their GUIDs in a Delphi 2007 application?
David Heffernan replied to dummzeuch's topic in RTL and Delphi Object Pascal
The curse of cross posting ......- 8 replies
-
- delphi-2007
- rtti
-
(and 2 more)
Tagged with:
-
How to pass an unknown record to a function as argument
David Heffernan replied to John Kouraklis's topic in RTL and Delphi Object Pascal
That's exactly what I suggested if you read on to the second paragraph. -
How to properly detect name of exe (running app) in Windows 10
David Heffernan replied to johnnydp's topic in Windows API
That SO topic is the same issue as yours. You might have to do a bit of research starting there. What you need to do is find the child process that actually implements the app. Lots of code examples to do that. -
How to properly detect name of exe (running app) in Windows 10
David Heffernan replied to johnnydp's topic in Windows API
That's the name of the executing process. Asker wants to know about external processes. -
How to properly detect name of exe (running app) in Windows 10
David Heffernan replied to johnnydp's topic in Windows API
Well, nobody really knows what that is. But your question is how to find the name of a UWP app from a top level window handle. Which is a question asked here https://stackoverflow.com/q/32001621/505088 -
Complete Boolean Evaluation
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
So I guess you are happy to rely on the left to right order ...... -
How to pass an unknown record to a function as argument
David Heffernan replied to John Kouraklis's topic in RTL and Delphi Object Pascal
No point planning for a future you can't see. The real problem was the stupid design in adding Create and Free methods that serve no purpose and confusing so many people. Best strategy is to use a singleton for the context. -
How to pass an unknown record to a function as argument
David Heffernan replied to John Kouraklis's topic in RTL and Delphi Object Pascal
You are quite wrong. No point freeing it. No point even creating it. -
How to pass an unknown record to a function as argument
David Heffernan replied to John Kouraklis's topic in RTL and Delphi Object Pascal
It's not possible. How could it be? -
How to pass an unknown record to a function as argument
David Heffernan replied to John Kouraklis's topic in RTL and Delphi Object Pascal
If the goal is to use RTTI then it seems questionable to use compile time generics. Will result in generic bloat. May as well pass the address of the record and the type info. Or if you want to ensure type safety have the generic method call a further helper method that is non-generic and receives the address of the record and the type info. That avoids the bloat and gives benefit of type safety. -
How to pass an unknown record to a function as argument
David Heffernan replied to John Kouraklis's topic in RTL and Delphi Object Pascal
How will you use RTTI with this? -
Pitfalls of Anonymous methods and capture
David Heffernan replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
It's a typo. Should be SSCCE: http://sscce.org/ -
How to switch condition position?
David Heffernan replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
The point about the order was to be sure that the condition was evaluated. Consider the two settings for the switch: 1. Left to right, condition is first sub expression, therefore it is evaluated. 2. Complete eval, all sub expressions are evaluated, therefore it is evaluated. QED -
How to switch condition position?
David Heffernan replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
You can count on it. http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Expressions_(Delphi)#Complete_Versus_Short-Circuit_Boolean_Evaluation Very surprised you don't know this. -
How to switch condition position?
David Heffernan replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Nothing to do with implementation details. The Python syntax is simply the Python equivalent of the C conditional operator. You know, the operator that is missing from Delphi. -
Pitfalls of Anonymous methods and capture
David Heffernan replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
It's an extra step for every one of your readers. In fact it's multiple steps. Down file. Unzip file. One goal of the writer is to make it easier for the reader to see and understand. For instance, if I was on a mobile device how would I read files in a zip file? -
How to switch condition position?
David Heffernan replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
That's certainly more concise but it has a completely different meaning. Think about it Rudy. -
How to switch condition position?
David Heffernan replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Seems kind of a waste of time this entire discussion. The language is well documented and is quite concise. The are only a handful of conditional statements. The syntax for if is clear. You have to write the code in the language that is provided to you. Use an if statement. End of story. -
How to switch condition position?
David Heffernan replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
So you know the answer