[fpc-pascal] Re: Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-10 Thread Virgo Pärna
On Fri, 9 Dec 2011 13:28:49 +0100 (CET), Dimitri Smits wrote: > > Randomize() is supposed to be called only once to seed the generator with an > initial value. > I do know that:) I made that mistake long time ago. What I thought was, that constantly setting RandSeed is somewhat like con

Re: [fpc-pascal] How to poll for a byte in Input?

2011-12-10 Thread tcoq
Thanks Michael, I also tried with a 20 ms delay. No success. Still investigating. - Mail Original - De: "Michael Van Canneyt" À: "FPC-Pascal users discussions" Envoyé: Vendredi 9 Décembre 2011 22h51:01 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [fpc-pas

Re: [fpc-pascal] How to poll for a byte in Input?

2011-12-10 Thread tcoq
Chad, Thank you very much. I will try your approach, as I'm interested in the piping. I also did some experimenting with SetConsoleMode, and also with SetFileAttributes, and with ReadFileEx. But no answer there. Still blocks. Best regards, Thierry - Mail Original - De: "Chad Berchek"

[fpc-pascal] "Free Pascal Programmer's Guide" - where is the latest version?

2011-12-10 Thread Bernd
This document: http://www.freepascal.org/docs-html/prog/prog.html is for the stable version 2.4 Does anybody know where I can find the development version of it (2.5.1 or soon 2.6.0)? I am digging around on the svn server in the fpc directories but I can't find it anywhere (maybe I am just looking

Re: [fpc-pascal] "Free Pascal Programmer's Guide" - where is the latest version?

2011-12-10 Thread Michael Van Canneyt
On Sat, 10 Dec 2011, Bernd wrote: This document: http://www.freepascal.org/docs-html/prog/prog.html is for the stable version 2.4 Does anybody know where I can find the development version of it (2.5.1 or soon 2.6.0)? I am digging around on the svn server in the fpc directories but I can't fi

Re: [fpc-pascal] How to poll for a byte in Input?

2011-12-10 Thread Martin Schreiber
On 12/10/2011 02:58 PM, tcoq wrote: > Chad, > Thank you very much. I will try your approach, as I'm interested in the > piping. > > I also did some experimenting with SetConsoleMode, and also with > SetFileAttributes, and with ReadFileEx. But no answer there. Still blocks. > IIRC non blocking

Re: [fpc-pascal] "Free Pascal Programmer's Guide" - where is the latest version?

2011-12-10 Thread Bernd
2011/12/10 Michael Van Canneyt : > Check the FTP server, somewhere in the 2.6 directory. Found it, Thanks. The reason I was looking for it was I wanted to know whether there has something changed with the optimization switches. But it seems this document still mentions things like -Or which the

Re: [fpc-pascal] Readline substitute

2011-12-10 Thread Johann Glaser
Hi Bernd! Am Donnerstag, den 08.12.2011, 20:44 +0100 schrieb Bernd: > 2011/5/1 Johann Glaser : > > > If you find any improvements or comments don't hesitate to send me an > > EMail. > > I just used it. I only needed readline() and add_history(), these two > functions are already enough to make a

Re: [fpc-pascal] Readline substitute

2011-12-10 Thread Johann Glaser
Hi Krishna! Am Samstag, den 10.12.2011, 12:13 +0530 schrieb Krishna: > On Fri, Apr 29, 2011 at 10:18 PM, Johann Glaser wrote: > > Hi! > > > > I want to equip a program with a command line and therefore want a > > powerful and user-friendly input prompt. Currently I use > > ReadLn(CmdLine); > > w

Re: [fpc-pascal] Readline substitute

2011-12-10 Thread noreply
>> The usual answer for this question is libreadline. I already worked with >> it (in plain C) but before I do a header translation for FreePascal I >> wanted to ask you for your opinion if there is a better alternative or >> anybody already has a header translation or even programmer-friendly >> w