Yes Delphi does some type inference on generic method calls
Delphi does indeed so some type inference as Primoz found out below. It has been doing this for a long time, improved over time, but has a long road ahead. One odd thing is that generics (and the...
View ArticleWhy Rubber Ducking is good
I like it when people find out that Rubber Ducking is a good thing. Read the story at [WayBack] … I’ve read about ‘rubber ducking’ and thought of it as a good thing, but I never really use/did it. Also...
View ArticleBogus W1036 ?
Reminder to self for checking if this still fails: [WayBack] Bogus W1036 ? Documentation: … “If you do not explicitly initialize a global variab… – Stefan Glienke – Google+ Documentation:...
View ArticleDelphi What’s new history and a docwiki URL trick
One of the great things about the Delphi docwiki structure is that the naming system is very consistent. The consistency helps you quickly finding the What’s new for any version, just by getting the...
View ArticleDelphi: Download multiple files in multiple parts at the same time, support...
If I ever need to download multiple files in multiple parts at the same time, support resuming, gzip-encoded files, cookies, logging to websites using POST and so on, then I need to look at [WayBack]...
View ArticleRemote access to the Embarcadero License Center via SSH tunnel – twm’s blog
Thomas basically did all the research on the forwarding needed for ELC (formerly Belise/Elise), then showed the PuTTY equivalent to ssh user@remote -L5567:192.168.1.200:5567: [WayBack] Remote access to...
View ArticleIn the series “avoid Variants when coding in Delphi”: the comparison operator
For Variant types, the = comparison operator in Delphi maps to the VarCompareValue in the Variants unit. That function fails to handle various comparisons and for some it knows it can handle raises a...
View ArticleTMonitor versus Critical sections revisited: when possible, use SRWL over...
Via [WayBack] TMonitor vrs Critical sections revisited. Back then (https://www.delphitools.info/2013/06/06/tmonitor-vs-trtlcriticalsection/), it was found that critic… – Kiriakos Vlahos – Google+ as he...
View ArticleDon’t use the TPL as it still has rough edges in unsuspected places
A few posts on why not to use the TPL and be very careful with regular RTL threading code: [WayBack] Ondrej Kelle – Google+ [WayBack] Delphi To Go: Don’t lose time with a known Delphi bug affecting...
View ArticleDelphi unit aliases: multiple ones can point to the same unit
A while ago, I had to figure out how to get some GExperts stuff cross-compile to older Delphi versions, because of UITypes usage that is not available in Delphi XE and lower (but much of what it...
View ArticleSpring4D – Shared, Weak references
In addition to Shared/IShared, there is also Weak/IWeakReference in Spring.pas; these blog post explain more about them: Shared/IShared (search for {$REGION 'Shared smart pointer'} at the current...
View Article“Fatal: F1027 Unit not found: ‘System.pas’ or binary equivalents (.dcu)”
If you ever get a “Fatal: F1027 Unit not found: ‘System.pas’ or binary equivalents (.dcu)” – Google Search, then it is likely because you: build from a script build use a user that has never ran the...
View ArticleWhat’s the piece of Delphi knowledge you find yourself looking up over and...
From an interesting thread at [WayBack] What’s the piece of Delphi knowledge you find yourself looking up over and over again? For me format strings is probably the thing that most stubbornly… –...
View ArticleDelphi consensus: interface implementing classes expose methods at private or...
Interesting consensus at which is very similar to my experience: [WayBack] I’ve inherited a project and the developer uses lots of interfaces (All good here!). Then when they develop the interfaced...
View ArticleMike Versteeg tried getting Hi-DPI to work in Delphi 10.2
Wondering how far Mike Versteeg has gotten in the mean time with the newer versions of Delphi that have come up: [WayBack] I’m having a go at multi monitor high DPI support for my styled 64 bit VCL...
View ArticleFl Ko: Getting the pixel position of the current editor cursor position for...
Since WayBack cannot save G+ photos, here is one from [WayBack] So, now I’m in front of a problem similar to a former one: I need to get the pixel position of the current editor cursor position for my...
View ArticleDelphi – tools to generate class diagrams/hierarchy from source code
I know ModelMaker Tools could do this: [WayBack] Quick Question … are there any good tools available to generate class diagrams / hierarchy from existing code? Or doesn’t anyone do that anymore ? –...
View ArticleKeep Your Project Files Clean With Project Magician – The Art of Delphi...
Reminder to self to install this to more than just the main dev VM as it combines DProjNormalizer and DProjSplitter, then adds a few more features: [WayBack] Keep Your Project Files Clean With Project...
View ArticleFreePascal downloads I used to get Web Service Toolkit to compile since the...
The Delphi WSDL importer maintenance has been in dormant mode for a long while, which means it still barfs on WSDL include directives. In the day and age of REST and gRPC, I don’t think it will get any...
View ArticleReminder to self: iocp-delphi/ThreadPool.pas at master · tondrej/iocp-delphi...
If I ever need a thread pool in Delphi, then I need to look at this class: [WayBack] iocp-delphi/ThreadPool.pas at master · tondrej/iocp-delphi · GitHub. Via: [WayBack] Don’t lose time with a known...
View Article