The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

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

    Join 1,737 other followers

Archive for September 12th, 2019

What went wrong with the IT industry? Some interesting thoughts on other industries coping with complexity…

Posted by jpluimers on 2019/09/12

[WayBack] What went wrong with the IT industry? Well, maybe the same as what happened in other industries that deal with complexity. We maybe beat ourselves up to… – James Coplien – Google+ is on my list of videos to watch.

–jeroen

Read the rest of this entry »

Posted in Development, Software Development, Systems Architecture | Leave a Comment »

Delphi / Stefan Glienke: I looked into IntroSort … and the Microsoft implementation … Here is my current implementation

Posted by jpluimers on 2019/09/12

For my link archive: [WayBack] Delphi / Stefan Glienke: I looked into IntroSort … and the Microsoft implementation … Here is my current implementation

[WayBackDelphi IntroSort by Stefan Glienke

–jeroen

https://bitbucket.org/snippets/sglienke/64LG6b/introsort

 

Posted in Delphi, Development, Software Development | Leave a Comment »

C# (and presumably Delphi): why parameterless record constructors are absent

Posted by jpluimers on 2019/09/12

For my link archive.

Full text at: [WayBack] … why the Delphi language does not allow parameterless constructors… – David Heffernan – Google+

Abstract:

+Stefan Glienke deleted his post about parameterless record constructors, presumably due to all the off topic comments.

.net at CLR level does allow parameterless constructors on structs. But the C# language bans them: https://msdn.microsoft.com/en-us/library/saxz13w4.aspx

Jon Skeet posted an answer on SO way back in 2008 on this topic: http://stackoverflow.com/a/333840/ From that answer:

—-
The CLR allows value types to have parameterless constructors, but C# doesn’t. I believe this is because it would introduce an expectation that the constructor would be called when it wouldn’t. For instance, consider this:

MyStruct[] foo = new MyStruct[1000];


—-

My guess is that Embarcadero decided to ban parameterless constructors on Delphi records for the same reason. Or perhaps they just copied the rules from C# without realising that the CLR supported parameterless struct constructors.

References:

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »

 
%d bloggers like this: