-
Content Count
3416 -
Joined
-
Last visited
-
Days Won
113
Everything posted by Lars Fosdal
-
General DB access question -- paging query results
Lars Fosdal replied to David Schwartz's topic in Databases
See previous my comments in this thread. SQL Server 2008 does not have built in support for pagination, while 2012 and newer does. -
I really hate this type of paranoia constructions. What do you think about?
Lars Fosdal replied to Juan C.Cilleruelo's topic in Algorithms, Data Structures and Class Design
That is the core of the question, isn't it? -
I really hate this type of paranoia constructions. What do you think about?
Lars Fosdal replied to Juan C.Cilleruelo's topic in Algorithms, Data Structures and Class Design
Crosses heart, spits over left shoulder, throws salt over the right one, all while repeating "Thou shall not goto". -
Role-Based Permissions packages or similar?
Lars Fosdal replied to John Kouraklis's topic in Algorithms, Data Structures and Class Design
My advice: keep your permissioning as simple as possible. Flexible permissioning is a rich source of challenges 😛 -
RSP-23024: Record helper class constructor gives senseless compiler warning
Lars Fosdal posted a topic in RTL and Delphi Object Pascal
https://quality.embarcadero.com/browse/RSP-23024 MCVE attatched to report. -
RSP-23024: Record helper class constructor gives senseless compiler warning
Lars Fosdal replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
That is a good point. I ended up calling a class method that do the init code in the unit init section. It still is a strange warning, though. -
How to type json properties that are arrays with mixed element types?
Lars Fosdal replied to Lars Fosdal's topic in Network, Cloud and Web
Reported a doc error: https://quality.embarcadero.com/browse/RSP-23024 Doh! Wrong issue! -
How to type json properties that are arrays with mixed element types?
Lars Fosdal replied to Lars Fosdal's topic in Network, Cloud and Web
Gotta love the level of detail in the help for the interceptors 😞 http://docwiki.embarcadero.com/Libraries/Rio/en/REST.Json.Interceptors Nudging @David Millington... -
How to type json properties that are arrays with mixed element types?
Lars Fosdal replied to Lars Fosdal's topic in Network, Cloud and Web
Or, a lack of established conventions - or - as for xml, an endless series of abuse 😛 -
How to type json properties that are arrays with mixed element types?
Lars Fosdal replied to Lars Fosdal's topic in Network, Cloud and Web
@Kryvich Do you know of any good examples of custom reverters? I am only going to consume these structures, not produce them - so that simplifies it a bit. Basically, I'd love to be able to transform the inner array elements to a single object, as there is only a limited number of permutations. -
How to type json properties that are arrays with mixed element types?
Lars Fosdal replied to Lars Fosdal's topic in Network, Cloud and Web
Indeed. This structure was probably designed by someone that is not loading objects, but who just walks the structures with a weakly typed language. -
How to type json properties that are arrays with mixed element types?
Lars Fosdal replied to Lars Fosdal's topic in Network, Cloud and Web
So - what happens to { "switch": true } in an array of array of variant? -
How to type json properties that are arrays with mixed element types?
Lars Fosdal replied to Lars Fosdal's topic in Network, Cloud and Web
Crickets.... -
RTTI, enumerated value and TCustomAttribute?
Lars Fosdal posted a topic in RTL and Delphi Object Pascal
Is there a way access TCustomAttribute values on individual enumerated values? type TLevel = ( [Tx('First')] one, [Tx('Second')] two, [Tx('Third')] three ); -
RTTI, enumerated value and TCustomAttribute?
Lars Fosdal replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
It does allow the syntax, though - so perhaps someone had it planned, once upon a time. -
Is there a way to use RTTI for records to allow walking public consts and types to extract names and values? Asking for a friend 😛 - kidding ... I'm try to produce documentation of certain structures at run time, and would like to do something like TDocBuilder.WalkRecordType<html>. type html = record type TRow = TArray<string>; public const LineBreak = '<BR />'; nbsp = ' '; lt = '<'; gt = '>'; DivEnd = '</div>'; public type divStyleDefault = record public const info = 'info'; book = 'book'; chapter = 'chapter'; section = 'section'; detail = 'detail'; example = 'example'; jsoncode = 'jsoncode'; end; divStyleDebug = record public const info = 'debuginfo'; book = 'debugbook'; chapter = 'debugchapter'; section = 'debugsection'; detail = 'debugdetail'; example = 'debugexample'; jsoncode = 'debugjsoncode'; end; {$ifdef debug} divStyle = divStyleDebug; {$else} divStyle = divStyleDefault; {$endif} end;
-
It's too complex for that, as the variations are many and loosely coupled. It means I will have to handcraft more info manually.
-
RTTI, determine record helper type for a base type
Lars Fosdal posted a topic in RTL and Delphi Object Pascal
Consider type TSomeType = (One, Two Three); TSomeTypeHelper = record helper for TSomeType class function Values: TArray<string>; end; Can I use RTTI to find the record helper type for TSomeType and the Values function? Reason: I'd like to call Values - which would be a naming convention (since record helpers can't be inherited or generic) - for any type that has a record helper with a class function named Values. -
Intuitively (i.e. also guessing 😛), I would tend to believe that DestDs tries to look up fields that exists in it's own structure , by name from SrcDs, and copy the value of such fields?
-
GetIt: missing all the TurboPower component
Lars Fosdal replied to gkobler's topic in Delphi IDE and APIs
The Fastreport VCL compos installed, but my project doesn't find the files in Rio. Haven't had time to delve into why. -
Unresponsive IDE and massive memory leaks with RIO
Lars Fosdal replied to Stéphane Wierzbicki's topic in Delphi IDE and APIs
FWIW: I had Berlin 10.1.3 and Tokyo 10.2.2 installed, before installing Rio - all installed with their respective Web installers. I did have betas for Berlin and Tokyo, but not for Rio (never had time to spare). I have the same registry settings that Uwe shows for 24, 25 and 26 - with 26 being the "current". 64-bit Windows. PS C:\> Get-ComputerInfo | select WindowsProductName, WindowsVersion, OsHardwareAbstractionLayer WindowsProductName WindowsVersion OsHardwareAbstractionLayer ------------------ -------------- -------------------------- Windows 10 Enterprise 1709 10.0.16299.371 -
Unresponsive IDE and massive memory leaks with RIO
Lars Fosdal replied to Stéphane Wierzbicki's topic in Delphi IDE and APIs
I disabled theming, and the UI became quite a bit more responsive. -
Unresponsive IDE and massive memory leaks with RIO
Lars Fosdal replied to Stéphane Wierzbicki's topic in Delphi IDE and APIs
My first impression is that the Rio IDE is sluggish. Resizing the frame of the IDE from left border is jumpy as heck (Single 4K display). -
@Daniel - u fix?
-
I wonder, would it be nice to channel posts on QP issues to a specific sub-forum? f.x. "Delphi Bugs & Issues" Sub-titled "Reported to QualityPortal" We do get a certain amount of these, particularly around new releases.