Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-06

Addition of partial specializations; Request for testers!

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sven Barth

Hello together!

I've finally come around to implement support for partial specializations. Partial specializations are for specializations of generics inside another generic. Up to now simply the generic type was used instead of a specializations (e.g. TTest instead of TTest<LongInt>) which often resulted in failed type checks. With the addition of partial specializations the amount of these errors should hopefully be decreased and I'll check the corresponding bug reports in the next few days.

Nevertheless partial specializations quite heavily changed how the parsing of generics works and thus I need your help. I already checked that there are no regressions in our testsuite, but maybe our testsuite does not yet contain a test for something that is now broken. So if you use generics OR you use nested records (yes, I needed to change something there as well) then I'd like you to test whether any regression in your code was introduced between the following Free Pascal revisions:

27860 (no partial specializations)
27861 (partial specializations)

So if something fails in revision 27861 that did not fail in 27860 I'd like you to report this with tag "partial specializations" (it should already exist in the tag list) and I'll fix that ASAP.

Thank you very much. :)

Regards,
Sven

Reply by email

silvioprog
to Sven Barth

2014-06-05 17:13 GMT-03:00 Sven Barth :

Show quoted text 29 lines
Hello together! I've finally come around to implement support for partial specializations. Partial specializations are for specializations of generics inside another generic. Up to now simply the generic type was used instead of a specializations (e.g. TTest instead of TTest<LongInt>) which often resulted in failed type checks. With the addition of partial specializations the amount of these errors should hopefully be decreased and I'll check the corresponding bug reports in the next few days. Nevertheless partial specializations quite heavily changed how the parsing of generics works and thus I need your help. I already checked that there are no regressions in our testsuite, but maybe our testsuite does not yet contain a test for something that is now broken. So if you use generics OR you use nested records (yes, I needed to change something there as well) then I'd like you to test whether any regression in your code was introduced between the following Free Pascal revisions: 27860 (no partial specializations) 27861 (partial specializations) So if something fails in revision 27861 that did not fail in 27860 I'd like you to report this with tag "partial specializations" (it should already exist in the tag list) and I'll fix that ASAP. Thank you very much. :) Regards, Sven

Very nice!

Is there any documentation showing some examples how to test it?

Well done! (y)

Silvio Clécio My public projects - github.com/silvioprog

Reply by email

Sven Barth
to silvioprog
"silvioprog" wrote 5 lines
2014-06-05 17:13 GMT-03:00 Sven Barth : Very nice! Is there any documentation showing some examples how to test it?

For now I simply want regression tests. So if you have code with generics then please check whether it still compiles and runs correctly.

For examples regarding partial specializations keep an eye open in the subversion repository as I'll commit the test cases of those reports that I managed to fix with this on the next days :)

Regards,
Sven

Reply by email