Re: [fpc-pascal] assigning a local function to a var

2008-07-10 Thread Marco van de Voort
> Thus, I would ask of the devs, has this functionality been considered? Yes. A solution for this problem is needed for Mac Pascal compatability. > Is there some particular reason that anyone is opposed to implementing > it? Not really I guess. > Or is it just difficult to implement, and/or n

Re: [fpc-pascal] Webservice from .Net

2008-07-10 Thread Inoussa OUEDRAOGO
Hi, 2008/7/9 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I build webservice app with .Net and connect to client app with fpc. I used > wst unit. But i have problem with WSDL translate result using the Lazarus > IDE. There is no parameter/function like wst samples. Can anyone help me? or > give the tu

Re: [fpc-pascal] assigning a local function to a var

2008-07-10 Thread Lourival Mendes
Dear David, Sorry for my question, probably I didn't get the real idea of what you need, but I didn't see why the revised version didn't work. Actually, I would write it like: procedure test; var what_to_say : ansistring; procedure proc_a; begin writeln ('A says, "',

Re: [fpc-pascal] assigning a local function to a var

2008-07-10 Thread Joao Morais
David Emerson wrote: You're missing the point -- those functions, func_a and func_b, should be embedded within another function. The behavior I would like to see concerns local functions, not global functions. In your executable, func_a and func_b are global functions (within the unit) not loc

Re: [fpc-pascal] assigning a local function to a var

2008-07-10 Thread David Emerson
Hi Joao, You're missing the point -- those functions, func_a and func_b, should be embedded within another function. The behavior I would like to see concerns local functions, not global functions. In your executable, func_a and func_b are global functions (within the unit) not local function

Re: [fpc-pascal] assigning a local function to a var

2008-07-10 Thread Joao Morais
David Emerson wrote: Joao: creating a named type isn't a solution, as it only moves the problem of declaration into the "type" section, where the very same problem persists. Thanks for responding, though. Did you test? I did and it works. == function func_a(pass_str: ansistring): bool

Re: [fpc-pascal] assigning a local function to a var

2008-07-10 Thread David Emerson
Thanks Lourival, Joao, Chris, for your responses. It looks like what I'm attempting is not possible. FWIW, I've included a more illustrative example at the end of this message. Thus, I would ask of the devs, has this functionality been considered? Is there some particular reason that anyone is

Re: [fpc-pascal] Performance issue with dynamic arrays

2008-07-10 Thread Florian Klaempfl
Volker Zipfel schrieb: Hi all! While analyzing my project with valgrind, I discovered that almost a quarter of the cpu cycle where eaten up by the function fpc_finalize_array. It seams that fpc_finalize_array calls for every element of the array fpc_finalize. To illustrate the problem i have

Re: [fpc-pascal] {$R file} support on non-Windows targets

2008-07-10 Thread Giulio Bernardi
Graeme Geldenhuys ha scritto: On Thu, Jul 10, 2008 at 9:13 AM, Giulio Bernardi <[EMAIL PROTECTED]> wrote: vendor provide their own (brcc32 from borland, wrc from watcom, gorc), but they are not "cross platform", even if wrc is able to compile win32, win16 and os2 resource files for those system

Re: [fpc-pascal] {$R file} support on non-Windows targets

2008-07-10 Thread Graeme Geldenhuys
On Thu, Jul 10, 2008 at 9:13 AM, Giulio Bernardi <[EMAIL PROTECTED]> wrote: > vendor provide their own (brcc32 from borland, wrc from watcom, gorc), but > they are not "cross platform", even if wrc is able to compile win32, win16 > and os2 resource files for those systems. You stole my example! :

Re: [fpc-pascal] csLoading

2008-07-10 Thread Vincent Snijders
Vincent Snijders schreef: Martin Schreiber schreef: You could check csLoading of the AOwner parameter. Thanks. That is a good suggestion. I'll use it if nothing better comes up. This was simple enough. I used it in r15730 of Lazarus. Thanks. Vincent ___

Re: [fpc-pascal] {$R file} support on non-Windows targets

2008-07-10 Thread Giulio Bernardi
Graeme Geldenhuys ha scritto: On Wed, Jul 9, 2008 at 8:17 PM, Giulio Bernardi <[EMAIL PROTECTED]> wrote: So I assume we have a cross-platform resource compiler now, so is windres unnecessary? Was pre-processing also implemented? No. To compile .rc files to .res you still need windres. In genera