Profile cover photo
Profile photo
Lars Fosdal
20,122 followers -
Rose Colored Glasses FTW!
Rose Colored Glasses FTW!

20,122 followers
About
Posts

Post has shared content
Add a comment...

Post has shared content
Add a comment...

Post has attachment

Post has attachment
Add a comment...

Post has attachment
Getting All "Special Folders" in .NET
"Retrieving the path to the new user folders like Downloads, Saved Games or Searches"

#dotnet #csharp

https://www.codeproject.com/Articles/878605/Getting-All-Special-Folders-in-NET
Add a comment...

Post has shared content
Add a comment...

Post has attachment
My niece, +Cecilie Wormdahl has a new personal deadlift best: 180 kilos!

#strongwoman #vegetarian and no artificial performance enhancers.
Add a comment...

Post has attachment
Add a comment...

Post has shared content
Add a comment...

Generic surprises

1. The generic type is constrained, but cannot be used for class references?

type
TBase = class
procedure NothingAbstractHere;
constructor Create; virtual;
end;

TGenericWrapper<TB: TBase, constructor> = class
type
TBaseClass = class of TB; <-- [dcc32 Error]: E2021 Class type required
end;

Is there any logical reason for why this should not be possible?


2. Constructing an instance from a generic type does not flag construction of a class with unimplemented virtual abstract methods. This one I can understand, but it still is annoying. I guess I could factory functions to work around it.
Wait while more posts are being loaded