Re: [fpc-pascal] Question about interfaces
On 21 mrt 2005, at 05:08, Marco van de Voort wrote: Nonsense. Python and perl etc were launched in the bubble era and are still floating on that capital. However there is a lot of hype and tinkering,and little real work done in it. If this kind of silly discussions have to be held, please do so on fpc-other (I'm not talking about the rest of the mail). Jonas FPC mailing list admin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Help needed with interfacing to C-object-files.
Am Mi, den 09.03.2005 schrieb Koenraad Lelong um 22:27: [...] I have been offline for the weekend and monday morning this mail from the 9th of march arrived in my inbox!? Is it: 1. a problem with the fpc mailing list? 2. a problem with my email provider? TIA, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] (no subject)
Hi, I think there are some problems with links in on-line fpc documentation. For example look at http://www.freepascal.org/docs-html/user/userse38.html#x55-1330008.2 and link to "Programmers guide" at the bottom of the page or http://www.freepascal.org/docs-html/user/userse39.html#x56-1340008.3 and link to "FPDoc reference guide" at the bottom of the page. Greetings Artur K This message was sent using IMP, the Internet Messaging Program. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Blockread and buffers
Hmmm... Just pure curiosity: I am getting a warning "Variable does not seem to be initialized" on a code from FreePascal RTL guide: Var Fin, fout : File; NumRead,NumWritten : Word; Buf : Array[1..2048] of byte; Total : Longint; begin Assign (Fin, Paramstr(1)); Assign (Fout,Paramstr(2)); Reset (Fin,1); Rewrite (Fout,1); Total:=0; Repeat BlockRead (Fin,buf,Sizeof(buf),NumRead); // <-- Warning here (buf) BlockWrite (Fout,Buf,NumRead,NumWritten); inc(Total,NumWritten); Until (NumRead=0) or (NumWritten<>NumRead); [snip] Address: http://www.freepascal.org/docs-html/rtl/system/blockread.html I have used similar code for ages and had no problems, but... Am I missing something? Should the buf be initialized (and if so - how) somewhere before? TIA Mike ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] links in online documantation
Hi On Mar 21, 2005, at 10:24, Artur Kornilowicz wrote: Hi, I think there are some problems with links in on-line fpc documentation. For example look at http://www.freepascal.org/docs-html/user/userse38.html#x55-1330008.2 and link to "Programmers guide" at the bottom of the page or http://www.freepascal.org/docs-html/user/userse39.html#x56-1340008.3 and link to "FPDoc reference guide" at the bottom of the page. Greetings Artur K The problem in both cases is that href attribute has URL with protocol file. Example: http://www.freepascal.org/docs-html/user/userse38.html#x55-1330008.2 has: Programmers guide instead of: Programmers guide Jan Ruzicka ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Blockread and buffers
Micha³ Wo¼niak wrote: > Hmmm... Just pure curiosity: > I am getting a warning "Variable does not seem to be initialized" on > a code from FreePascal RTL guide: Note that it is written "does not SEEM". The code is OK IMHO. Warnings aren't always right -- for example if we have a function with many parameters, and one of the descendant classes implements a overriden function that uses part of the parameters you'll also get a warning, despite that it's ok. At your service, Kornel Kisielewicz (charonATmagma-net.pl) "11 years and no binary. And it's not vapourware" -- Igor Savin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Blockread and buffers
> Hmmm... Just pure curiosity: > I am getting a warning "Variable does not seem to be initialized" on a > code > from FreePascal RTL guide: > > Var Fin, fout : File; > NumRead,NumWritten : Word; > Buf : Array[1..2048] of byte; > Total : Longint; > > begin > Assign (Fin, Paramstr(1)); > Assign (Fout,Paramstr(2)); > Reset (Fin,1); > Rewrite (Fout,1); > Total:=0; > Repeat > BlockRead (Fin,buf,Sizeof(buf),NumRead); // <-- Warning here (buf) > BlockWrite (Fout,Buf,NumRead,NumWritten); > inc(Total,NumWritten); > Until (NumRead=0) or (NumWritten<>NumRead); > [snip] > > Address: http://www.freepascal.org/docs-html/rtl/system/blockread.html > > I have used similar code for ages and had no problems, but... > Am I missing something? Should the buf be initialized (and if so - how) > somewhere before? There are no warning/notes when compiled with 1.9.8. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Blockread and buffers
Dnia wtorek, 22 marca 2005 04:11, Kornel Kisielewicz napisał: > Note that it is written "does not SEEM". The code is OK IMHO. As I said - pure curiosity. Besides, we all know the dream of a warning-free compilation. :) Thanks Mike ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal