Re: [fpc-pascal] OT: Creating a site to contain Pascal units, libraries etc

2012-10-30 Thread waldo kitty
On 10/29/2012 20:04, ik wrote: * I sent it originally for FPC-Others, but it does not appear there even in the archive FWIW: it showed up here in fpc-other when you first posted it... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

Re: [fpc-pascal] Range check error while evaluating constants

2012-10-30 Thread ik
On Tue, Oct 30, 2012 at 10:10 PM, Mark Morgan Lloyd wrote: > ik wrote: >> >> Hello, >> >> I have the following function: >> >> function OneToTwoComplement(AValue: QWord): QWord; >> begin >> Result := (AValue xor $) + 1; >> end; >> >> What am I missing here that makes the compiler

Re: [fpc-pascal] Re: problems compiling FPC

2012-10-30 Thread Sven Barth
On 30.10.2012 16:00, Mark Morgan Lloyd wrote: Mattias Gaertner wrote: Jonas Maebe hat am 30. Oktober 2012 um 14:44 geschrieben: On 17 Oct 2012, at 16:52, Marco van de Voort wrote: > > New text: D:\repo\fpc>make all makefile:2717: *** The only supported starting compiler ver

Re: [fpc-pascal] Range check error while evaluating constants

2012-10-30 Thread Mark Morgan Lloyd
ik wrote: Hello, I have the following function: function OneToTwoComplement(AValue: QWord): QWord; begin Result := (AValue xor $) + 1; end; What am I missing here that makes the compiler complain about "Range check error while evaluating constants" ? Why doesn't it complain o

Re: [fpc-pascal] Best way to transfer data between applications?

2012-10-30 Thread Alberto Narduzzi
I am familiar with the basic underlying methods available for transferring data between processes on Windows and Unix, i.e. Pipes, Shared memory, and TCP/IP - but what I am not familiar with is any higher level functionality that may be available on FPC. If I'd do something in this scope, I'd

Re: [fpc-pascal] Range check error while evaluating constants

2012-10-30 Thread Peter
On 30/10/12 14:26, ik wrote: Hello, I have the following function: function OneToTwoComplement(AValue: QWord): QWord; begin Result := (AValue xor $) + 1; end; What am I missing here that makes the compiler complain about "Range check error while evaluating constants" ? Why d

Re: [fpc-pascal] Re: Range check error while evaluating constants

2012-10-30 Thread geneb
On Tue, 30 Oct 2012, ik wrote: On Tue, Oct 30, 2012 at 4:26 PM, ik wrote: Hello, I have the following function: function OneToTwoComplement(AValue: QWord): QWord; begin Result := (AValue xor $) + 1; end; What am I missing here that makes the compiler complain about "Range

Re: [fpc-pascal] Best way to transfer data between applications?

2012-10-30 Thread Ewald
On 10/30/2012 02:34 PM, $B0u>l(B $BG50!(B wrote: > Right, and I am talking about relatively small amounts of data, not movies or > something. The reason I thought of SHM is that there would be no need to > decode the structure into a string and re-encode it, etc. Instead, the > application

[fpc-pascal] Re: Range check error while evaluating constants

2012-10-30 Thread ik
On Tue, Oct 30, 2012 at 4:26 PM, ik wrote: > Hello, > > I have the following function: > > function OneToTwoComplement(AValue: QWord): QWord; > begin > Result := (AValue xor $) + 1; > end; > > What am I missing here that makes the compiler complain about "Range > check error whil

Re: [fpc-pascal] Re: problems compiling FPC

2012-10-30 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: Jonas Maebe hat am 30. Oktober 2012 um 14:44 geschrieben: On 17 Oct 2012, at 16:52, Marco van de Voort wrote: > > New text: D:\repo\fpc>make all makefile:2717: *** The only supported starting compiler version is 2.6.0. You are trying to build wit

Re: [fpc-pascal] Re: problems compiling FPC

2012-10-30 Thread Graeme Geldenhuys
On 2012-10-30 14:04, Mattias Gaertner wrote: >> (that person even manually >> edited the makefile and replaced the 2.6.0 with 2.7.1 trying to get around >> the >> check). Oh my f#*k! > "Programming today is a race between software engineers strivi

Re: [fpc-pascal] Re: problems compiling FPC

2012-10-30 Thread Henry Vermaak
On 30/10/12 14:04, Mattias Gaertner wrote: > Rich Cook > "Programming today is a race between software engineers striving to build > bigger > and better idiot-proof programs, and the Universe trying to produce bigger and > better idiots. So far, the Universe is winning." Ah, you beat me to it :)

[fpc-pascal] Range check error while evaluating constants

2012-10-30 Thread ik
Hello, I have the following function: function OneToTwoComplement(AValue: QWord): QWord; begin Result := (AValue xor $) + 1; end; What am I missing here that makes the compiler complain about "Range check error while evaluating constants" ? Why doesn't it complain on : functio

Re: [fpc-pascal] Re: problems compiling FPC

2012-10-30 Thread Mattias Gaertner
Jonas Maebe hat am 30. Oktober 2012 um 14:44 geschrieben: > On 17 Oct 2012, at 16:52, Marco van de Voort wrote: > > > > > New text: > > > > D:\repo\fpc>make all > > makefile:2717: *** The only supported starting compiler version is > > 2.6.0. > > You are trying to build with

Re: [fpc-pascal] Re: problems compiling FPC

2012-10-30 Thread Jonas Maebe
On 17 Oct 2012, at 16:52, Marco van de Voort wrote: New text: D:\repo\fpc>make all makefile:2717: *** The only supported starting compiler version is 2.6.0. You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revisio

Re: [fpc-pascal] Best way to transfer data between applications?

2012-10-30 Thread 印場 乃亜
Hi, Wow I am surprised this is continuing so long - I take it other people have interest in the subject too. On 2012/10/30, at 17:08, "Jorge Aldo G. de F. Junior" wrote: > 2012/10/30 印場 乃亜 : >> Hi, >> >> Wow, Class Factories - I am having nightmarish flashbacks to my college C++ >> classes.

Re: [fpc-pascal] OT: Creating a site to contain Pascal units, libraries etc

2012-10-30 Thread Tomas Hajny
On Tue, October 30, 2012 12:49, ik wrote: > On Tue, Oct 30, 2012 at 2:29 AM, Jeppe GrĂŚsdal Johansen > wrote: >> Den 30-10-2012 01:04, ik skrev: >>> >>> Hello, >>> >>> There are many places such as GitHub, Google Code, Sourceforge etc, >>> that hosts a lot of open source projects, libraries etc fo

Re: [fpc-pascal] OT: Creating a site to contain Pascal units, libraries etc

2012-10-30 Thread ik
On Tue, Oct 30, 2012 at 2:29 AM, Jeppe Græsdal Johansen wrote: > Den 30-10-2012 01:04, ik skrev: >> >> Hello, >> >> There are many places such as GitHub, Google Code, Sourceforge etc, >> that hosts a lot of open source projects, libraries etc for >> FPC/Pascal. >> On the other hand we have fppkg t

[fpc-pascal] Two and one compliment converting functions

2012-10-30 Thread ik
Hello, Does FPC contain any functions to convert between One Compliment (http://en.wikipedia.org/wiki/Ones%27_complement) to Two Compliment (http://en.wikipedia.org/wiki/Two%27s_complement) and vice versa ? I ask this before I'll implement it on my own :) Thanks, Ido

Re: [fpc-pascal] Using flag field in Getopts

2012-10-30 Thread Henry Vermaak
On 30/10/12 10:05, luciano de souza wrote: > Hello listers, > Getopts offers very good features to process commandline arguments. As > far as I could understand, I used it successfully. But it remains one > unknown aspect for me. What is the field "flag"" of TOption record? > How to use it? > >

Re: [fpc-pascal] Best way to transfer data between applications?

2012-10-30 Thread Jorge Aldo G. de F. Junior
2012/10/30 印場 乃亜 : > Hi, > > Wow, Class Factories - I am having nightmarish flashbacks to my college C++ > classes. > > Okay, Thank you for all of the suggestions. I will try to compare the > suggestions, and see what I can come up with for my situation. > Just for further information: > 1. I wa