Re: [fpc-pascal] Blockread and buffers

2005-03-25 Thread Peter J. Haas
Hi Micha, on 2005-03-25T22:36:10+02:00 Micha wrote: >> In the last weeks we have had four discussions about hints. > You only mention 3 here ? I count four. The first, the second, the third and the problem discussed in this thread. >> The first problem was a bug and is solved. > So ? I

Re: [fpc-pascal] Blockread and buffers

2005-03-25 Thread Peter J. Haas
Hi Peter, on 2005-03-25T19:37:02+02:00 Peter wrote: >> I know. But why I should explain it more detailed, if you anyway >> disapprove such suggestions. :-( > Most ppl want compatibility with Delphi. When we add a warning for > uninitialized var parameters then there will be a lot of bug reports >

Re: [fpc-pascal] Blockread and buffers

2005-03-24 Thread Peter J. Haas
Hi Peter, on 2005-03-24T23:23:30+02:00 Peter wrote: >> The problem, you describe above could be solved relative simple, even >> the solution is more complex. I don't know any details of the >> compiler, but I assume, that internally the compiler use a identical >> structure to manage the parameter

Re: [fpc-pascal] Blockread and buffers

2005-03-24 Thread Peter J. Haas
Hi Peter, on 2005-03-24T12:55:21+02:00 Peter wrote: >> I don't know, whether other compiler modes support const and out. >> If yes, the RTL/FCL/LCL functions should use it. This do mean e.g. > For compatibility we can't do this. Delphi also doesn't warn. This is not really a good argument. FPC

Re: [fpc-pascal] Blockread and buffers

2005-03-23 Thread Peter J. Haas
Hi Jeffrey, on 2005-03-23T22:16:26+02:00 Jeffrey wrote: > However, the example below gives me a similar warning > with 1.9.8, but not 1.9.6: I don't get such a warning with a version some days ago. > program vdnstbi; > var > s:string; > begin > str(16, s); // Variable "s" does not seem to be

Re: [fpc-pascal] Blockread and buffers

2005-03-23 Thread Peter J. Haas
Hi Jonas, on 2005-03-23T22:26:03+02:00 Jonas wrote: > On 23 mrt 2005, at 22:16, Jeffrey Pohlmeyer wrote: >> program vdnstbi; >> var >> s:string; >> begin >> str(16, s); // Variable "s" does not seem to be initialized >> WriteLn(s); >> end. >> >> Does "S" really need to be initialized ? >

Re: [fpc-pascal] Blockread and buffers

2005-03-22 Thread Peter J. Haas
Hi Peter, on 2005-03-22T08:36:36+01:00 Peter wrote: >> Hmmm... Just pure curiosity: >> I am getting a warning "Variable does not seem to be initialized" on a >> code >> from FreePascal RTL guide: ... >> BlockRead (Fin,buf,Sizeof(buf),NumRead); // <-- Warning here (buf) > There are no warnin

Re: [fpc-pascal] function String Replication

2005-03-20 Thread Peter J. Haas
Hi Sergio, on 2005-03-04T22:21:15+01:00 you wrote: > I am looking for the name of the native fpc function for: DupeString, unit StrUtils. Take a look in the Run-Time library reference guide: http://www.freepascal.org/docs.html (Standard units reference manual). > function ReplicateStr(s:strin

Re: [fpc-pascal] Re: [fpc-other] Access to the mailing list

2005-03-20 Thread Peter J. Haas
Hi, on 2005-03-20T16:10:38+01:00 I wrote: >>> Two days ago, I have send three mails to the fpc-pascal mailing list. ... Sorry, my mail client was not correct configured, the mail should post in the fpc-other mailinglist. On the other side, I have try to post the mail included in this mail repeat

[fpc-pascal] Re: [fpc-other] Access to the mailing list

2005-03-20 Thread Peter J. Haas
f the one mail (inclusive header, quoted). > Date: Thu, 17 Mar 2005 20:28:38 +0100 > From: "Peter J. Haas" <[EMAIL PROTECTED]> > X-Mailer: The Bat! (v1.62r) Personal > Reply-To: "Peter J. Haas" <[EMAIL PROTECTED]> > X-Priority: 3 (Normal) > Messa

Re: [fpc-pascal] bool / boolean converting

2005-03-18 Thread Peter J. Haas
Hi Peter, on 2005-03-18T17:31:53+01:00 you wrote: >> So far I could see it in the FPC sources, BOOL is declared as >> WINBOOL and this as longbool. In Windows general 0 mean False and >> any value <> 0 mean True. In the Windows API TRUE is declared as 1 >> (at 16, 32 and as well as 64 bit API). >>

[fpc-pascal] bool / boolean converting

2005-03-17 Thread Peter J. Haas
Hi, first, sorry my bad english. I have post this and the next two questions already in community (german language forum). So far I could see it in the FPC sources, BOOL is declared as WINBOOL and this as longbool. In Windows general 0 mean False and any value <> 0 mean True. In the Windows API