Re: [fpc-pascal] Dynamic Arrays in Procedures

2020-10-04 Thread Sven Barth via fpc-pascal
James Richters via fpc-pascal schrieb am So., 4. Okt. 2020, 23:44: > So it does... > > I should have tested my own example. I found my problem, I declared it > as Var and it would only work with variables due to that > That's just a normal open array parameter and worked this way for a long ti

Re: [fpc-pascal] Dynamic Arrays in Procedures

2020-10-04 Thread Winfried Bartnick via fpc-pascal
Am 04.10.20 um 23:44 schrieb James Richters via fpc-pascal: So it does... I should have tested my own example. I found my problem, I declared it as Var and it would only work with variables due to that. -Original Message- From: fpc-pascal On Behalf Of gabor via fpc-pascal Sent: Su

Re: [fpc-pascal] Dynamic Arrays in Procedures

2020-10-04 Thread James Richters via fpc-pascal
So it does... I should have tested my own example. I found my problem, I declared it as Var and it would only work with variables due to that. -Original Message- From: fpc-pascal On Behalf Of gabor via fpc-pascal Sent: Sunday, October 4, 2020 4:34 PM To: fpc-pascal@lists.freepascal.

Re: [fpc-pascal] Dynamic Arrays in Procedures

2020-10-04 Thread gabor via fpc-pascal
W dniu 2020-10-04 o 21:58, James Richters via fpc-pascal pisze: DoSomethingElse([$12,$1A,$2B]);for example… of course this doesn’t work, but is there a syntax that would work? This expression works fine with FPC 3.2.0 ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Dynamic Arrays in Procedures

2020-10-04 Thread Howard Page-Clark via fpc-pascal
On 04/10/2020 20:58, James Richters via fpc-pascal wrote: I’m wondering if there is a way to pass an array of values to a Procedure without defining an array variable…. For example, if I have a Procedure: Procedure DoSomething(X :Byte); Then I can call it with a specific a variable like thi

[fpc-pascal] Dynamic Arrays in Procedures

2020-10-04 Thread James Richters via fpc-pascal
I'm wondering if there is a way to pass an array of values to a Procedure without defining an array variable.. For example, if I have a Procedure: Procedure DoSomething(X :Byte); Then I can call it with a specific a variable like this: Var ThingA :Byte; . DoSomething(ThingA); And

Re: [fpc-pascal] Looking for testers for 3.2.0 release cross-compilers for NDS, GBA and WII targets

2020-10-04 Thread code dz via fpc-pascal
2020-10-04 17:35 UTC+01:00, Pierre Muller via fpc-pascal : > Hi everyone, > > I was wondering if there are still users of > Free Pascal compiler targeting arm-nds, arm-gba or powerpc-wii. > i had always the same question i my head , since these are very old console devices i will give it a try

[fpc-pascal] Looking for testers for 3.2.0 release cross-compilers for NDS, GBA and WII targets

2020-10-04 Thread Pierre Muller via fpc-pascal
Hi everyone, I was wondering if there are still users of Free Pascal compiler targeting arm-nds, arm-gba or powerpc-wii. I recently managed to re-generate 3.2.0 cross-install files for i386-win32 (usable of Windows OSes) target arm-gba, arm-nds and powerpc-wii. These zip files also include