Re: [fpc-pascal] Documentation example error

2016-01-26 Thread Graeme Geldenhuys
On 2016-01-26 10:13, Jonas Maebe wrote: > The rttiobj unit is compiled in Delphi mode Ah, I missed that one. Thanks for pointing that out. >, hence > http://wiki.freepascal.org/User_Changes_2.6.0#Sizes_of_sets_in_TP.2FDelphi_mode Many thanks for the link. Regards, - Graeme - My public P

Re: [fpc-pascal] Documentation example error

2016-01-26 Thread Jonas Maebe
Graeme Geldenhuys wrote on Tue, 26 Jan 2016: To make the typeinfex/*.pp examples compilable, I had to make some changes as shown below. I don't hope text wrapping screws this up, but just in case, I attached the patch too. Before, it seems it was valid to typecast a Set as Integer(), but testin

Re: [fpc-pascal] Documentation example error

2016-01-26 Thread Graeme Geldenhuys
On 2016-01-25 16:32, Michael Van Canneyt wrote: > They should definitely be compilable. Complete patch attached in Mantis: http://mantis.freepascal.org/view.php?id=29513 Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My

Re: [fpc-pascal] Documentation example error

2016-01-26 Thread Graeme Geldenhuys
On 2016-01-25 16:32, Michael Van Canneyt wrote: > > They should definitely be compilable. To make the typeinfex/*.pp examples compilable, I had to make some changes as shown below. I don't hope text wrapping screws this up, but just in case, I attached the patch too. Before, it seems it was vali

Re: [fpc-pascal] Documentation example error

2016-01-26 Thread Graeme Geldenhuys
On 2016-01-25 16:44, Stephen Chrzanowski wrote: > You could possibly just replace it with a tedit or > tlistbox or something. No, that would make the example GUI and GUI Toolkit dependant. Free Pascal doesn't include any GUI dependencies. Regards, - Graeme - -- fpGUI Toolkit - a cross-platfor

Re: [fpc-pascal] Documentation example error

2016-01-26 Thread Stephen Chrzanowski
I looked at the example, and it isn't compilable by my eye ball, however, the idea I think is to replace that not found class def'n with something you already know about. You could possibly just replace it with a tedit or tlistbox or something. On Mon, Jan 25, 2016 at 11:32 AM, Michael Van Canney

Re: [fpc-pascal] Documentation example error

2016-01-25 Thread Graeme Geldenhuys
On 2016-01-25 16:32, Michael Van Canneyt wrote: > They should definitely be compilable. OK, I found more. I'll send through a patch via Mantis. Regards, - Graeme - My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] Documentation example error

2016-01-25 Thread Michael Van Canneyt
On Mon, 25 Jan 2016, Graeme Geldenhuys wrote: Hi, I was always under the impression that the examples included in the FPC documentation should be compilable examples. Looking at the following example code included with the GenEnumName() documentation, it will not compile because TMyTestObjec

[fpc-pascal] Documentation example error

2016-01-25 Thread Graeme Geldenhuys
Hi, I was always under the impression that the examples included in the FPC documentation should be compilable examples. Looking at the following example code included with the GenEnumName() documentation, it will not compile because TMyTestObject is undefined. http://www.freepascal.org/docs-h