Re[2]: [fpc-pascal] real to integer

2006-05-30 Thread Пётр Косаревский
The compiler already gives unit information in case you have conflicting types for making it easier to debug such problems. I don't see why it shouldn't do the same for used function definitions. Jonas program A; // Bad program uses sysutils,windows; const B:shortstring='1.txt'; begin

Re: Re[2]: [fpc-pascal] real to integer

2006-05-30 Thread Jonas Maebe
On 30 mei 2006, at 12:10, Пётр Косаревский wrote: The compiler already gives unit information in case you have conflicting types for making it easier to debug such problems. I don't see why it shouldn't do the same for used function definitions. This is fpc-pascal maillist, I don't insist,

Re[2]: [fpc-pascal] real to integer

2006-05-29 Thread Пётр Косаревский
The problem is that Apple's universal interfaces also include a round function, which returns a real instead of an integral type. How can one find such a thing himself without trialerror? Some time ago I had a similar problem with bool DeleteFile(PChar) function in Windows API and