In context of the recent Web Assembly post about what platforms Delphi should support, I would rank Windows ARM support for Delphi far, far higher than WASM, since I write services running on Windows Server.
The penguins are coming! We need you to enlist today in our Delphi Linux Boot Camp so you’ll be prepared for the penguin invasion! This may be your first chance to see #Delphi Tokyo in action.
It’s not always easy to pick a good color that will show well on displays with limited color depths.
If anyone knows if this exists – or have some time on their hands, it would be good to have a simple application that could render the System.UITypes TColors constants for lines/text/brushes on different color depths (8 bit, 16-bit, 32-bit). Showing the name of the color (or atleast the hex value) would be good and being able to copy it to the clipboard as a string would be great.
Is there a way to disable the RAD Studio IDE response to WM_WININICHANGE ?
The Enterprise is spamming me with these every 15 minutes (a side effect of policy policing and software update pushes), causing the IDE to hang for 30 seconds while it flashes the toolbars.
But – For unit testing, this creates another predicament
We have used an RTTI trick to create a loop for each value in anon.type T for enumerations, and hence had a
type
TEnumTester
type
reference to function EnumToString(const Value: T):String;
…
end;
But there is no such way to “genericize” a helper method.
type
IEnumHelper = interface
function ToString:string;
function Description: string;
end;
I can’t declare an interface which a record helper have to adher to, as there is no syntax to do so, and I can’t constrain the generic type to match that interface
My suggestion would be to allow something like
type
TMyEnumHelper = record helper for (TMyEnum, IEnumHelper)
function ToString:string;
function Description: string;
end;
TEnumTester = class
end;
and be able to declare
var
TestMyEnum: TEnumTester;
Today the interface constraint fails with
[dcc32 Error] : E2514 Type parameter ‘T’ must support interface ‘IEnumHelper’
since the enumerated type is not recognized as having support for the interface.
I think that would have been helpful – as would a generics constraint for enumerated types be.
You must be logged in to post a comment.