[fpc-pascal] Documentation example error
Michael Van Canneyt
michael at freepascal.org
Mon Jan 25 17:32:22 CET 2016
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 TMyTestObject is undefined.
>
> http://www.freepascal.org/docs-html/rtl/typinfo/getenumname.html
>
>
> If my assumption about compilable examples are correct, I'll be happy to
> supply a patch to fix it.
They should definitely be compilable.
I do not check this regularly, though :/
Michael.
More information about the fpc-pascal
mailing list