Re: [fpc-pascal] Generics in Objective Pascal?

2020-11-02 Thread Ryan Joseph via fpc-pascal
> On Nov 2, 2020, at 1:30 PM, Zoë Peterson via fpc-pascal > wrote: > > I have an NSView subclass with a bunch of fields and methods, and I wanted to > be able to optionally swap that out with a parallel version derived from > NSVisualEffectView without duplicating all of the code. I was hop

Re: [fpc-pascal] Generics in Objective Pascal?

2020-11-02 Thread Zoë Peterson via fpc-pascal
On 11/2/20 1:01 PM, Ryan Joseph via fpc-pascal wrote: What are you trying to do exactly? There are categories in ObjC but those don't allow fields (they're like helpers in Object Pascal). If you need to share data between a bunch of different NSView subclasses then all you can do is make a com

Re: [fpc-pascal] Generics in Objective Pascal?

2020-11-02 Thread Ryan Joseph via fpc-pascal
> On Nov 1, 2020, at 8:45 AM, Zoë Peterson via fpc-pascal > wrote: > > 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: > Waiting for Jonas to reply but I'm pretty c

Re: [fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-11-02 Thread José Mejuto via fpc-pascal
El 01/11/2020 a las 20:36, AlexeyT via fpc-pascal escribió: @/José Mejuto, can you pls simplify this place, ie remove "if /IBYTE = 10" + then/else. Hello, I don't have write access, so no, I can not. -- ___ fpc-pascal maillist - fpc-pascal@list