Jump to content

Kazantsev Alexey

Members
  • Content Count

    23
  • Joined

  • Last visited

  • Days Won

    2

Kazantsev Alexey last won the day on October 6

Kazantsev Alexey had the most liked content!

Community Reputation

24 Excellent

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Kazantsev Alexey

    Items of custom managed records

    program Project1; {$APPTYPE CONSOLE} uses System.Rtti; type TvatIndividual = record DocumentNumber: string; TurnoverDate: TDate; PaymentDate: TDate; DocumentType: string; Year: integer; TurnoverDescription: string; TurnoverAmount: Currency; end; begin for var f in TRttiContext.Create.GetType(TypeInfo(TvatIndividual)).GetFields do WriteLn(f.ToString); ReadLn; end.
  2. You need to specify parameters --libpath and --syslibroot. Values can find in SDK Manager.
  3. Kazantsev Alexey

    Font size in macOS app

    You can register your own IFMXSystemFontService.
  4. Kazantsev Alexey

    Delphi Parser/Compiler Limitation?

    Use ampersand operator, Luke. program Project2; {$APPTYPE CONSOLE} uses System.TypInfo; {$SCOPEDENUMS ON} type TEnums = (&TRY, &SHR, &XOR, &IS, &AS); begin WriteLn(GetEnumName(TypeInfo(TEnums), Ord(TEnums.SHR))); WriteLn(GetEnumValue(TypeInfo(TEnums), 'shr')); ReadLn; end. Output: SHR 1
  5. Kazantsev Alexey

    How can I allocate memory without raising exceptions ?

    You can use SysGetMem, SysReallocMem, SysFreeMem.
  6. Kazantsev Alexey

    How many people use Delphi?

    Sorry for dirty adaptation spritz_bench.zip
  7. Kazantsev Alexey

    How many people use Delphi?

    Two cent about compilers performance by the example of spritz-c stream cipher implementation: 1. Delphi 11, Windows x86_64 (classic compiler), release 2. Delphi 11, Linux x86_64 (nextgen, LLVM based compiler), release 3. FreePascal 3.3.1, Linux x86_64, release
  8. Kazantsev Alexey

    What the Delphi 11 version number after november patch ?

    Try to check file version of your delphide280.bpl (or just run Delphi only, not RAD Studio)
  9. Kazantsev Alexey

    What the Delphi 11 version number after november patch ?

    Some about build numbers: https://blogs.embarcadero.com/rad-studio-11-2-alexandria-patch-1-available/#Final_Note_The_Patch_is_Listed_in_the_About_Box
  10. You don't need mac to compile units. Just use command line compiler to compile this unit: unit def; interface implementation {$if defined(MACOS)} {$message hint 'MACOS defined'} {$endif} end.
  11. Kazantsev Alexey

    10.4.1+ Custom Managed Records usable?

    https://quality.embarcadero.com/browse/RSP-35397
  12. Kazantsev Alexey

    Binary size, how-to make it smaller?

    The same example on 10.4.2: 1770kb, 1279kb, 456kb
  13. Kazantsev Alexey

    Binary size, how-to make it smaller?

    For XE2 you need explicitly rebuild the three files (for latest versons need some more rtl files be rebuilded): system.pas (with key -Y) system.sysutils.pas (with key -V-) system.variants.pas (with key -V-) (search path should include rtl sources) When project building seach path should include your own custom rtl dcus, and rtl sources after it.
  14. Kazantsev Alexey

    Binary size, how-to make it smaller?

    library rtltest; //{$weaklinkrtti on} uses system.classes; begin TMemoryStream.Create.Free; end. Delphi XE2, x86_64, Release: default - 547840 bytes + weaklinkrtti on - 505344 bytes + custom rtl build with minimal rtti - 256000 bytes
  15. Kazantsev Alexey

    Your RAD Studio 10.4 Sydney issues

    The error is not in the implementation of the custom initializer. A custom initializer is available for the “TRec” type, but an initialization error is in the “TData” type, which does not have a custom initializer, but has a field of a managed type. In the code example, you can replace the custom initializer with any other custom management operator (finalizer, assign), and you will get the same error.
×