The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

    • RT @hbeckpdx: Hi friends, I'm looking for a job somewhere working to make our world and society better. My special interests are accessibi… 43 minutes ago
    • RT @ginnymooy: Quote Kuipers: "Maak je eigen plan" Maar. De overheid heeft een grondwettelijke verplichting de volksgezondheid te bevorder… 44 minutes ago
    • RT @locuta: De doe-het-zelf maatschappij Moet je wel belasting voor betalen RT @Teletekst: "Zelf voorbereiden op coronagolf" https://t.co… 2 hours ago
    • RT @hbeckpdx: Didn't get a job I was really hoping for, so it's back to searching 😕 If you see backend positions at shops at least not mak… 2 hours ago
    • RT @barrysmit: Ik zie veel kritische reacties, maar is het echt zo gek om aan de burger te vragen om gewoon zelf een keer voor voldoende IC… 2 hours ago
  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,726 other followers

Delphi Compiler Intrinsics can help you collapse generated code for generics a lot

Posted by jpluimers on 2020/12/01

On my reading list [WayBack] Delphi Corner Weblog: The current state of generics in Delphi because it explains in more detail why Delphi compiler generic type based intrinsics introduced some 5 years ago, but never been (accurately) documented, but listed at [WayBack] delphi – Undocumented intrinsic routines – Stack Overflow, are so important to help collapse decreasing code bloat:

  • Default
  • IsManagedType
  • HasWeakRef
  • GetTypeKind

There is also the TypeInfo which is somewhat documented on-line starting in the Delphi 2007 documentation:

 

And some non-generic intrinsics that are still undocumented:

  • IsConstValue
  • ReturnAddress

Spring4D already has been making use of this for a few years, and you can too!

Via [WayBack] rvelthuis.blogspot.com/2018/10/the-current-state-of-generics-in-delphi.html – Jacek Laskowski – Google+ that has some more information on Spring4D too.

A tiny bit more information on collapsing: [WayBack] TURBU Tech » Blog Archive » Wish list: Generics collapsing

–jeroen

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: