Re: [fpc-devel] ppudump question
Thanks! It was a great suggestion! It is probably related to empty sets - but there is also something else - i have *.pp with "[]" passed as parameter but *.ppu does not mention set with empty ElType :( Thanks again! Gennady On 8/24/2015 3:05 AM, Pierre Free Pascal wrote: Maybe you are using empty sets in your source code? An empty set: [] has no elements and thus the compiler cannot know what the type of the elements are. In the hope that this will help, Pierre Muller -Message d'origine- De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- boun...@lists.freepascal.org] De la part de Gennady Agranov Envoyé : dimanche 23 août 2015 00:46 À : fpc-devel@lists.freepascal.org Objet : [fpc-devel] ppudump question Hi, 1. I have code that heavily uses enums/sets When I use ppudump to print *.ppu files I see some sets reported with null ElType and I do not understand what causes them :( And I do not believe that they are referenced at all... Any ideas why "set" is reported with no ElType? Thanks, Gennady Example: json version: { "Type": "set", "Id": 236, "Size": 1, "Base": 0, "Max": 0, "ElType": null }, text version: ** Definition Id 236 ** Set definition Type symbol : (7357) Nil DefOptions : DefStates : Element type : (7361) Nil Size : 1 Set Base : 0 Set Max : 0 xml version: 236 1 0 0 { "Type": "set", "Id": 92, "Size": 1, "Base": 0, "Max": 0, "ElType": null } ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] ppudump question
Maybe you are using empty sets in your source code? An empty set: [] has no elements and thus the compiler cannot know what the type of the elements are. In the hope that this will help, Pierre Muller > -Message d'origine- > De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- > boun...@lists.freepascal.org] De la part de Gennady Agranov > Envoyé : dimanche 23 août 2015 00:46 > À : fpc-devel@lists.freepascal.org > Objet : [fpc-devel] ppudump question > > Hi, > > 1. I have code that heavily uses enums/sets > > When I use ppudump to print *.ppu files I see some sets reported with > null ElType and I do not understand what causes them :( > > And I do not believe that they are referenced at all... > > Any ideas why "set" is reported with no ElType? > > Thanks, > Gennady > > Example: > > json version: > >{ > "Type": "set", > "Id": 236, > "Size": 1, > "Base": 0, > "Max": 0, > "ElType": null >}, > > text version: > > ** Definition Id 236 ** > Set definition >Type symbol : (7357) Nil > DefOptions : > DefStates : > Element type : (7361) Nil > Size : 1 > Set Base : 0 >Set Max : 0 > > xml version: > > >236 >1 >0 >0 > > > > >{ > "Type": "set", > "Id": 92, > "Size": 1, > "Base": 0, > "Max": 0, > "ElType": null >} > > ___ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
[fpc-devel] ppudump question
Hi, 1. I have code that heavily uses enums/sets When I use ppudump to print *.ppu files I see some sets reported with null ElType and I do not understand what causes them :( And I do not believe that they are referenced at all... Any ideas why "set" is reported with no ElType? Thanks, Gennady Example: json version: { "Type": "set", "Id": 236, "Size": 1, "Base": 0, "Max": 0, "ElType": null }, text version: ** Definition Id 236 ** Set definition Type symbol : (7357) Nil DefOptions : DefStates : Element type : (7361) Nil Size : 1 Set Base : 0 Set Max : 0 xml version: 236 1 0 0 { "Type": "set", "Id": 92, "Size": 1, "Base": 0, "Max": 0, "ElType": null } ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel