[fpc-pascal] Generics in Objective Pascal?

2020-11-01 Thread Zoë Peterson via fpc-pascal
I'd like to have a generic objcclass that would add some extra functionality for multiple base types.  I don't have a lot of experience with generics, but this compiles: -- generic TMyControl = class(T)   private     FField: string; procedure Foo;   end;   TMyEdit = specialize TMyControl; --

[fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-11-01 Thread AlexeyT via fpc-pascal
>Though one could probably exclude the check at line 1981 of rtl/inc/ustrings.inc as well as the two existing branches will result in the same Yes, it was my point B. @/José Mejuto, can you pls simplify this place, ie remove "if /IBYTE = 10" + then/else. -- Regards, Alexey