[fpc-pascal] undocumented 'library' hint directive

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Oct 13 15:18:17 CEST 2015


Hi,

Based on the latest FPC Language Reference documentation, there is no
"library" hint directive (like Delphi & Kylix has)...

http://www.freepascal.org/docs-html/ref/refse5.html#x17-160001.5

Or Section 1.5 on page 16 of the PDF.

Yet the following example program compiles without error using FPC
2.6.4. I gather this is an omission in the documentation?

Second question, what does the "library" hint directive mean or do?


=========================================
program test;

{$mode objfpc}{$h+}

uses
  SysUtils, Classes;

var
  VersionNumber: Real library;

begin
  VersionNumber := 1.234;
  writeln(VersionNumber);
end.

=========================================

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list