Re: [fpc-pascal] rtl-generics: Suggestion and question

2016-08-12 Thread silvioprog
On Fri, Aug 12, 2016 at 5:03 PM, silvioprog wrote: > On Fri, Aug 12, 2016 at 3:51 PM, Maciej Izak wrote: > [...] > >> Using WARN OFF for whole module is rather bad, but might be (temporary) >> the only solution. IIRC FPC has many bugs for switching off warnings / >> hints especially for generics

Re: [fpc-pascal] rtl-generics: Suggestion and question

2016-08-12 Thread silvioprog
On Fri, Aug 12, 2016 at 3:51 PM, Maciej Izak wrote: [...] > Using WARN OFF for whole module is rather bad, but might be (temporary) > the only solution. IIRC FPC has many bugs for switching off warnings / > hints especially for generics. Compiler likes to report warnings/hints in > specialization

Re: [fpc-pascal] rtl-generics: Suggestion and question

2016-08-12 Thread Maciej Izak
2016-08-12 19:17 GMT+02:00 silvioprog : > Those hints can be a problem when we also need to check the log from other > classes, because it pollute the windows messages, so a suggestion is just > to declare the "{$WARN 5024 OFF : Parameter "$1" not used}" in the > rtl-generics units. > The question

[fpc-pascal] rtl-generics: Suggestion and question

2016-08-12 Thread silvioprog
Hello, I've spend some time adapting my beta project to use the new rtl-generics classes, however, I have some issues regarding to TDictionary class. Let's go to a test using the example below: === begin code === var hash: TDictionary; begin hash := TDictionary.Create; end === end code ===