[fpc-pascal] Where is the 'write' function defined and how is it different from 'writeln'?
vfclists at gmail.com
Fri Mar 20 19:18:49 CET 2015
On 20 March 2015 at 18:01, leledumbo <leledumbo_cool at yahoo.co.id> wrote:
> > Where is the 'write' function defined and how is it different from
> > I can see a lot of fpc_writeXXX and other xxxxWrite functions, but no
> > 'write' itself
> those fpc_writeXXX ARE the actual write. Write(Ln) is NOT a function as
> others whose implementation you can clearly see. It's rather a command for
> the compiler to translate to the correct fpc_writeXXX call. So, if you:
> WriteLn(123,' is an integer');
> the compiler will translate it to:
> fpc_write_text_shortstring('is an integer');
> The same case applies to Read(Ln). AFAIK Pascal's I/O is part of the
> language, not the RTL.
Where does the output go? Is it for stdout, strderr or the console?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal