[fpc-pascal]Program Example19; the Eoln function

Morten Gulbrandsen morten.gulbrandsen at t-online.de
Sun May 5 00:23:47 CEST 2002


Program Example19;

    { Program to demonstrate the Eoln function. }

    begin
      { This program waits for keyboard input. }
      { It will print True when an empty line is put in,
        and false when you type a non-empty line.
        It will only stop when you press enter.}
      While not Eoln do
        Writeln (eoln);
    end.

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

this I got from the documentation, 
i compile and run with 

ppc386   example19
Free Pascal Compiler version 0.99.13 [1999/11/20] for i386
Copyright (c) 1993-1999 by Florian Klaempfl
Target OS: Linux for i386
Compiling example19.pas
text.inc(5,1) Hint: Conditional INT64 was set at startup in last
compilation of syslinux.pp
text.inc(5,1) Hint: Conditional HASSAVEREGISTERS was set at startup in
last compilation of syslinux.pp
text.inc(5,1) Hint: Conditional NEWVMTOFFSET was set at startup in last
compilation of syslinux.pp
text.inc(5,1) Hint: Conditional HASINTERNMATH was set at startup in last
compilation of syslinux.pp
text.inc(5,1) Hint: Conditional LINUX was set at startup in last
compilation of syslinux.pp
text.inc(5,1) Hint: Conditional I386 was set at startup in last
compilation of syslinux.pp
Assembling example19
Linking example19
13 Lines compiled, 0.0 sec


morten at debian:~/Pascal/09_Tegn_og_strenge$ ./example19 
a
FALSE
FALSE
FALSE
...

only Ctrl + c can stop this madness.

If I start with a letter. 
a  cr

Do I start with cr, then 
it stops,  but it never prints true,  why ?

This is an example from the FreePascal documentation.

In the file ref.pdf   page 134 it says in the text.
Reference guide for Free Pascal, version 1.0.2
1.8
December 2000

Yours Sincerely


Morten Gulbrandsen




More information about the fpc-pascal mailing list