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, th

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'; begi

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

2006-05-30 Thread Пётр Косаревский
> > i would have beat my head against a wall for days on a problem like that. It was absolutely unexpected by me. You saw: unit order matter very much and both units may be without sources (people are not supposed to install sources every time). Signalling error "wrong type", when I have correc

Re: [fpc-pascal] real to integer

2006-05-30 Thread Vincent Snijders
Jonas Maebe schreef: On 30 mei 2006, at 08:37, Vincent Snijders wrote: i would have beat my head against a wall for days on a problem like that. Using the wrong tool for the wrong job, I would say. A compiler is to compiler, an IDE to write code. The compiler already gives unit informatio

Re: [fpc-pascal] real to integer

2006-05-30 Thread Jonas Maebe
On 30 mei 2006, at 08:37, Vincent Snijders wrote: i would have beat my head against a wall for days on a problem like that. Using the wrong tool for the wrong job, I would say. A compiler is to compiler, an IDE to write code. The compiler already gives unit information in case you have

Re: [fpc-pascal] real to integer

2006-05-29 Thread Vincent Snijders
Tony Pelton schreef: On 5/29/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: Use a IDE with code tools that support find declaration. that is a terrible answer. this isn't the "IDE" list, it is the Free Pascal "compiler" list. Indeed. But sometimes the compiler doesn't give enough informa

Re: [fpc-pascal] real to integer

2006-05-29 Thread Tony Pelton
On 5/29/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: Use a IDE with code tools that support find declaration. that is a terrible answer. this isn't the "IDE" list, it is the Free Pascal "compiler" list. i would have beat my head against a wall for days on a problem like that. i would sug

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

2006-05-29 Thread Пётр Косаревский
> > While compiler gives a hint about "true" declaration, it does not point to > > the problematic unit. > Use a IDE with code tools that support find declaration. > In your case Lazarus would for example have jumped to an include file that > that > contains the wrong declaration. Search include

Re: [fpc-pascal] real to integer

2006-05-29 Thread Vincent Snijders
Пётр Косаревский schreef: 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 trial&error? Some time ago I had a similar problem with "bool DeleteFile(PChar)" functi

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 trial&error? Some time ago I had a similar problem with "bool DeleteFile(PChar)" function in Windows API and s

Re: [fpc-pascal] real to integer

2006-05-29 Thread Jonas Maebe
On 29 mei 2006, at 14:46, Thomas Miller wrote: I am frustrated by a very simple problem. I am trying to convert real to integer, using free pascal for mac. I am an old Think Pascal user who just recently found free pascal and, while thrilled to have a pascal compiler for mac OSX, I am s

Re: [fpc-pascal] real to integer

2006-05-29 Thread Vincent Snijders
Thomas Miller schreef: I am frustrated by a very simple problem. I am trying to convert real to integer, using free pascal for mac. I am an old Think Pascal user who just recently found free pascal and, while thrilled to have a pascal compiler for mac OSX, I am still a bit lost. In Think Pa

[fpc-pascal] real to integer

2006-05-29 Thread Thomas Miller
I am frustrated by a very simple problem. I am trying to convert real to integer, using free pascal for mac. I am an old Think Pascal user who just recently found free pascal and, while thrilled to have a pascal compiler for mac OSX, I am still a bit lost. In Think Pascal, I would have