Re: [fpc-pascal] Local procedures as actual procedure parameter in macpas mode

2010-08-24 Thread Alberto Narduzzi
Jonas, No. He's using MacPas mode in FPC 2.5.1. In that mode, nested procedural variables are supported (and also in ISO mode, and also in all other syntax modes if you add {$modeswitch nestedprocvars}). The error message was caused by a compiler bug. This declares a regular procvar, while t

Re: [fpc-pascal] Local procedures as actual procedure parameter in macpas mode

2010-08-24 Thread Jonas Maebe
On 24 Aug 2010, at 22:38, Alberto Narduzzi wrote: >> Trying to compile the following code (porting from MW Pascal) >> procC (procedure procD (var y: myObject)); > > the compiler is complaining because the ProcB is a nested procedure of ProcA. No. He's using MacPas mode in FPC 2.5.1

Re: [fpc-pascal] Local procedures as actual procedure parameter in macpas mode

2010-08-24 Thread Alberto Narduzzi
Trying to compile the following code (porting from MW Pascal) procC (procedure procD (var y: myObject)); the compiler is complaining because the ProcB is a nested procedure of ProcA. Try defining it outside the object, if possible. If not, define it as an object method(*) I a

Re: [fpc-pascal] Local procedures as actual procedure parameter in macpas mode

2010-08-24 Thread Jonas Maebe
On 24 Aug 2010, at 19:29, fpanas...@tiscali.it wrote: > Trying to compile the following code (porting from MW Pascal) [snip] It's fixed. When reporting problems in the future, please include full source code instead of only snippets. Jonas ___ fpc-

Re: [fpc-pascal] fcl-passrc: Process library source?

2010-08-24 Thread Graeme Geldenhuys
On 24 August 2010 18:29, Matthias Klumpp wrote: >  (In ParseSource() call) > How do I make FCL-PASSRC process the lib source code too? It's not implemented yet - just like fcl-passrc can't parse Program units either. Based on what I found while looking what to implement for Program unit parsing,

[fpc-pascal] Local procedures as actual procedure parameter in macpas mode

2010-08-24 Thread fpanas...@tiscali.it
Trying to compile the following code (porting from MW Pascal) type myObject = object procA (x: integer); procC (procedure procD (var y: myObject)); end; procedure myObject. procC (procedure procD (var y: myObject)); begin

[fpc-pascal] fcl-passrc: Process library source?

2010-08-24 Thread Matthias Klumpp
Hi! At time I'm playing around with fcl-passrc to automate some actions I have to perform with the source code. Unfortunately, FCL-PASSRC does not process the source of a library: Expected "unit" at token "library" (In ParseSource() call) How do I make FCL-PASSRC process the lib source code too?

Re: [fpc-pascal] ARM-Cortex port

2010-08-24 Thread Florian Klaempfl
Am 24.08.2010 11:53, schrieb Geoffrey Barton: > > using Jonas and Jeppe's answers to my idiot questions in this forum, and > Jeppe's startup code for the STM32F, I have FPC cross-compiling for the > LM3S9B92, one of the TI Luminary processors. If you've any reusable startup code, we would be hap

Re: [fpc-pascal] ARM-Cortex port

2010-08-24 Thread Thomas Schatzl
Hi, On Tue, 24 Aug 2010 10:53:55 +0100, Geoffrey Barton wrote: >> >> Date: Mon, 23 Aug 2010 13:57:30 -0300 >> Thanks Jonas and Jeppe for your answers. I will probably wait then to >> switch (or try to convince the company to use an ARM-9) > > using Jonas and Jeppe's answers to my idiot question

Re: [fpc-pascal] ARM-Cortex port

2010-08-24 Thread Geoffrey Barton
Date: Mon, 23 Aug 2010 13:57:30 -0300 From: Andreas Berger Subject: Re: [fpc-pascal] ARM-Cortex port To: FPC-Pascal users discussions Message-ID: <4c72a87a.7020...@thebergerclan.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Thanks Jonas and Jeppe for your answers. I will pr

Re: [fpc-pascal] make smart doesn't work for cross build

2010-08-24 Thread Jonas Maebe
On 24 Aug 2010, at 08:09, leledumbo wrote: Oh, is that so? What about defining CREATE_SMART and LINK_SMART? Adding OPT="-CX -XX" will force smartlinking all binaries. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f