Re: [fpc-pascal] "Is nested" vs "of object" compatibility with global functions

2022-05-29 Thread Martin Frb via fpc-pascal
On 29/05/2022 07:21, Michael Van Canneyt via fpc-pascal wrote: On Sun, 29 May 2022, Hairy Pixels via fpc-pascal wrote: I’ve been testing out all the different function pointer types in FPC to test their compatibility with each other and I noticed that “is nested” can accept a global function

Re: [fpc-pascal] "Is nested" vs "of object" compatibility with global functions

2022-05-29 Thread Hairy Pixels via fpc-pascal
> On May 29, 2022, at 2:26 PM, Martin Frb via fpc-pascal > wrote: > > Actually afaik you push an extra param in for "is nested" as well as for "of > object. > > But for "of object" it is the first param, for "is nested" it is the last. Then “references to” is the only universal function

Re: [fpc-pascal] "Is nested" vs "of object" compatibility with global functions

2022-05-29 Thread Hairy Pixels via fpc-pascal
> On May 29, 2022, at 2:26 PM, Martin Frb via fpc-pascal > wrote: > > Actually afaik you push an extra param in for "is nested" as well as for "of > object. > > But for "of object" it is the first param, for "is nested" it is the last. So you can cast nested or object to each other and the

[fpc-pascal] Code tools and function references

2022-05-29 Thread Hairy Pixels via fpc-pascal
Is this issue addressing the fact that the Lazarus code tools is not working with the new syntax? https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39774. If not I’ll open another one. I use code tools for my Pascal language server and it’s basically not usable anymore if you merely

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

2022-05-29 Thread Sven Barth via fpc-pascal
Am 28.05.2022 um 14:04 schrieb Benito van der Zander via fpc-pascal: Hi, Sort((left, right) begin if left < right then result := -1 else if left > right then result := 1 else