Re: [fpc-pascal] Serial connection via TCP/IP sockets on RPi?

2023-11-04 Thread Bo Berglund via fpc-pascal
On Fri, 03 Nov 2023 19:47:01 +0100, Bo Berglund via fpc-pascal wrote: >I have now found that there is a Linux utility named socat, which apparently is >able to map a serial port to a network socket server: > >https://www.acmesystems.it/socat > >Here they actually use ser2net as the remote server

[fpc-pascal] Compiler probem?

2023-11-04 Thread Paul Renaud via fpc-pascal
Hi, I have a question about some code. The following code segment generated a compiler error when I compiled it with... fpc Sample -Se -gl -al but not when it's compiled with... fpc Sample -Se -gl ... Asm  LdRH R0, [ R1, R2, LSL #1 ]End [ 'R0',  'R1' ];... Any idea why?  Its driving me crazy. Than

Re: [fpc-pascal] Creating capturers

2023-11-04 Thread Hairy Pixels via fpc-pascal
> On Nov 4, 2023, at 4:22 PM, Sven Barth wrote: > > Then don't assign them every "frame". If you just keep them around then they > aren't more expensive than a virtual method call. > And any other mechanism would involve the heap as well, because that's how > anonymous functions that capture

Re: [fpc-pascal] Creating capturers

2023-11-04 Thread Sven Barth via fpc-pascal
Hairy Pixels schrieb am Sa., 4. Nov. 2023, 01:42: > > > > On Nov 3, 2023, at 8:31 PM, Sven Barth > wrote: > > > > If you need a catch all type, then you should use function references. > There is no need to invent yet another type. > > The only thing it can not handle is the assignment of nested