[fpc-pascal] Bug?

2010-06-11 Thread Roger Bailey
Can someone explain this? > program WhatsGoingOnHere ; > > type > > FunctionType = function : INTEGER ; > > function NamedFunction : INTEGER ; > begin > NamedFunction := 12345 ; > end ; > > function TestFunction ( ActualParameter : FunctionType ) : INTEGER ; > begin > TestFunction :

Re: [fpc-pascal] LNet

2010-06-11 Thread Andreas Schneider
Am Freitag 11 Juni 2010, 18:50:56 schrieb Felipe Monteiro de Carvalho: > And from my tests Get is indeed returning the amount read. I still > don't know if half a packet could be received in the OnReceive event > or if it only returns an integer amount of packets. That makes > difference in the al

Re: [fpc-pascal] LNet

2010-06-11 Thread Felipe Monteiro de Carvalho
I sent a direct main to Almindor and he answered my questions. Basically there is no direct way to detect the barrier between packages, you have to make your packet structure allow for that, but luckly mine was already prepared for this. And from my tests Get is indeed returning the amount read.

Re: [fpc-pascal] LNet

2010-06-11 Thread Joost van der Sluis
On Mon, 2010-06-07 at 14:15 +0200, Felipe Monteiro de Carvalho wrote: > Ok, thanks, now I seam to be able to get it working using > TLTCPComponent, but I am unsure about how to read data. > > Ok, I read that it will call OnReceive when there is data ready, but I > couldn't find anything about how