Re: [fpc-pascal] Is there a Pos() function for TBytes?

2023-04-19 Thread Michael Van Canneyt via fpc-pascal
On Thu, 20 Apr 2023, Bo Berglund via fpc-pascal wrote: I am transferring data via serial comm and they wind up inside a TBytes dyn array. Now I want to easily find a certain pattern of bytes inside that array, but how? I have a cludge that does not feel right but works and I want to get it r

[fpc-pascal] Is there a Pos() function for TBytes?

2023-04-19 Thread Bo Berglund via fpc-pascal
I am transferring data via serial comm and they wind up inside a TBytes dyn array. Now I want to easily find a certain pattern of bytes inside that array, but how? I have a cludge that does not feel right but works and I want to get it replaced by the "correct" way of doing it. So what I have don

Re: [fpc-pascal] Oberon-0

2023-04-19 Thread Sven Barth via fpc-pascal
Adriaan van Os via fpc-pascal schrieb am Do., 20. Apr. 2023, 04:46: > Ralf Quint via fpc-pascal wrote: > > > What does Oberon and Forth have to do with the FreePascal compiler? 😕 > > 1. Niklaus Wirth > 2. Strong resemblance between Oberon and Pascal > 3. An early version of his book Compiler Cons

Re: [fpc-pascal] Oberon-0

2023-04-19 Thread Adriaan van Os via fpc-pascal
Ralf Quint via fpc-pascal wrote: What does Oberon and Forth have to do with the FreePascal compiler? 😕 1. Niklaus Wirth 2. Strong resemblance between Oberon and Pascal 3. An early version of his book Compiler Construction used Pascal rather than Oberon There is no relation with Forth, bur I

Re: [fpc-pascal] Oberon-0

2023-04-19 Thread Tomas Hajny via fpc-pascal
On 2023-04-20 00:34, Ralf Quint via fpc-pascal wrote: On 4/19/2023 1:06 AM, Markus Greim via fpc-pascal wrote: . . A native Oberon0 to Propeller ASM compiler would be fine, but maybe it would be easier to write first an Oberon0 to PropForth compiler. What does Oberon and Forth have to do w

Re: [fpc-pascal] Oberon-0

2023-04-19 Thread Ralf Quint via fpc-pascal
On 4/19/2023 1:06 AM, Markus Greim via fpc-pascal wrote: You are right there are in between many compilers for the Propeller 2 around. My idea would be a to have an Oberon system on the Propeller itself. Developing on the target itself is unbeatable clever. Is started 35 Years ago with the 8051-

Re: [fpc-pascal] Oberon-0

2023-04-19 Thread Markus Greim via fpc-pascal
You are right there are in between many compilers for the Propeller 2 around. My idea would be a to have an Oberon system on the Propeller itself. Developing on the target itself is unbeatable clever. Is started 35 Years ago with the 8051-AH Basic processor and later on similar systems. The