Re: [fpc-pascal] Constants in generics tests

2019-02-16 Thread Sven Barth via fpc-pascal
Am 15.02.2019 um 23:00 schrieb Ryan Joseph: On Feb 15, 2019, at 4:19 PM, Sven Barth via fpc-pascal wrote: It could be that the method body is not generated. Look for generate_specialization_procs in pgenutil as that is what generates the bodies at the end of a unit (simplified). Really g

Re: [fpc-pascal] Constants in generics tests

2019-02-16 Thread Ryan Joseph
> On Feb 16, 2019, at 3:33 AM, Sven Barth via fpc-pascal > wrote: > > While you're at it, you should probably also ensure that internal error > 2014050904 does not trigger ;) That’s what got my in the first place. I saw the internal error and made it not trigger but didn’t bother to check i

Re: [fpc-pascal] Constants in generics tests

2019-02-16 Thread Jonas Maebe
On 16/02/19 15:04, Ryan Joseph wrote: Btw, how does FPC generate internal errors numbers? I needed to add some errors myself and I didn’t know how to increment the counter. YearMonthDay00, YearMonthDay01, ... Jonas ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Constants in generics tests

2019-02-16 Thread Sven Barth via fpc-pascal
Am Sa., 16. Feb. 2019, 15:34 hat Ryan Joseph geschrieben: > > > > On Feb 16, 2019, at 3:33 AM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > While you're at it, you should probably also ensure that internal error > 2014050904 does not trigger ;) > > That’s what got

Re: [fpc-pascal] Constants in generics tests

2019-02-16 Thread Ryan Joseph
> On Feb 16, 2019, at 9:42 AM, Sven Barth via fpc-pascal > wrote: > > When you create the constant symbols for the specialization you need to make > sure that they belong to the surrounding symtable, not the specialized > generic. > I probably didn’t get that right then. The constants are

[fpc-pascal] FGL.TFPSList Find method needed (binary search)

2019-02-16 Thread AlexeyT
Hello. Can you pls, add Sorted property to TFPSList / TFPGList (Add() method must sort newly added item), and also Find method (which must use binary search in Sorted case, and use plain loop if not sorted)? -- Regards, Alexey ___ fpc-pascal maillist

Re: [fpc-pascal] Constants in generics tests

2019-02-16 Thread Ryan Joseph
> On Feb 15, 2019, at 1:52 PM, Jeppe Johansen wrote: > > Hi, > > Do you know why this doesn't work? Jeppe I got this fixed now so if you update and rebuild from git it should work now. Really stupid one liner mistake that took my all morning to find. I included this into the tests which all

Re: [fpc-pascal] FGL.TFPSList Find method needed (binary search)

2019-02-16 Thread Sven Barth via fpc-pascal
Am Sa., 16. Feb. 2019, 21:30 hat AlexeyT geschrieben: > Hello. Can you pls, add Sorted property to TFPSList / TFPGList (Add() > method must sort newly added item), and also Find method (which must use > binary search in Sorted case, and use plain loop if not sorted) > You could also check whethe