Re: [fpc-pascal] Overloading IN operator

2017-12-12 Thread Sven Barth via fpc-pascal
Am 13.12.2017 02:37 schrieb "Fabio Luis Girardi" : Hi all! I want to extend some operators in Freepascal. I want to achieve something like this: if aStr in ['string item 1', 'string item 2', 'string item 3'] then ... else ...; Following the examples to overload operators, I wrote: operator

Re: [fpc-pascal] Overloading IN operator

2017-12-12 Thread Vojtěch Čihák
discussions Datum: 13.12.2017 02:37 Předmět: [fpc-pascal] Overloading IN operator Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada <http://sourceforge.net/projects/pascalscada> http://www.pascalscada.com <http://www.pascal

[fpc-pascal] Overloading IN operator

2017-12-12 Thread Fabio Luis Girardi
Hi all! I want to extend some operators in Freepascal. I want to achieve something like this: if aStr in ['string item 1', 'string item 2', 'string item 3'] then ... else ...; Following the examples to overload operators, I wrote: operator in (a:String; b:array of string):Boolean; var c: