Re: [fpc-pascal] nested procedure as parameter question

2010-04-16 Thread Adriaan van Os
Bruce Bauman wrote: I am porting a large amount of existing Pascal code (MetaWare) to Free Pascal. Unfortunately, this code makes extensive use of nested procedures, and the nested procedures often reference variables in the enclosing scope. I know that I can't pass the nested routine by address

RE: [fpc-pascal] nested procedure as parameter question

2010-04-15 Thread Bruce Bauman
ed (or an error is generated). -- Bruce -Original Message- From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Flávio Etrusco Sent: Thursday, April 15, 2010 1:57 PM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] nest

Re: [fpc-pascal] nested procedure as parameter question

2010-04-15 Thread Flávio Etrusco
On Thu, Apr 15, 2010 at 2:51 PM, Bruce Bauman wrote: > I am porting a large amount of existing Pascal code (MetaWare) to Free > Pascal. Unfortunately, this code makes extensive use of nested > procedures, and the nested procedures often reference variables in the > enclosing scope. > > I know that

[fpc-pascal] nested procedure as parameter question

2010-04-15 Thread Bruce Bauman
I am porting a large amount of existing Pascal code (MetaWare) to Free Pascal. Unfortunately, this code makes extensive use of nested procedures, and the nested procedures often reference variables in the enclosing scope. I know that I can't pass the nested routine by address to another procedure;