Re: [fpc-pascal] Feature Announcement: Function References and Anonymous Functions

2022-05-26 Thread Zoë Peterson via fpc-pascal
Sven, I'm absolutely thrilled to see this finally merged.  I sincerely appreciate all of the work that you and Blaise put into it over such a long time.  I can't wait to see what the community is able to do with it.  Thank you, and thank you to the entire Free Pascal team for everything you'v

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

[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; --