Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread waldo kitty
On 1/23/2014 2:32 PM, Jim Leonard wrote: On 1/23/2014 1:27 PM, Marco van de Voort wrote: Define a procedure type that matches both procedures, in your example Type TProc = procedure ; // which is predefined in system afaik. and change whichproc to that type. The VAR is not necessary in this

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread waldo kitty
On 1/23/2014 2:27 PM, Marco van de Voort wrote: In our previous episode, waldo kitty said: i'm trying to use one routine (centralControl) to process data from two different routines (inputThis and outputThat)... the one routine (centralControl) needs to call one of two other routines whichpro

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread waldo kitty
On 1/23/2014 2:22 PM, Ewald wrote: On 23 Jan 2014, at 20:18, waldo kitty wrote: i'm trying to use one routine (centralControl) to process data from two different routines (inputThis and outputThat)... the one routine (centralControl) needs to call one of two other routines (doThis or doThat).

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread Jim Leonard
On 1/23/2014 1:27 PM, Marco van de Voort wrote: Define a procedure type that matches both procedures, in your example Type TProc = procedure ; // which is predefined in system afaik. and change whichproc to that type. The VAR is not necessary in this case. Alternately, switch to an OOP mod

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread Marco van de Voort
In our previous episode, waldo kitty said: > > i'm trying to use one routine (centralControl) to process data from two > different routines (inputThis and outputThat)... the one routine > (centralControl) needs to call one of two other routines whichproc is typeless and thus roughly equal to a

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread Ewald
On 23 Jan 2014, at 20:18, waldo kitty wrote: > > i'm trying to use one routine (centralControl) to process data from two > different routines (inputThis and outputThat)... the one routine > (centralControl) needs to call one of two other routines (doThis or > doThat)... how? :( > First defi

[fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread waldo kitty
i'm trying to use one routine (centralControl) to process data from two different routines (inputThis and outputThat)... the one routine (centralControl) needs to call one of two other routines (doThis or doThat)... how? :( procedure doThis; begin end; procedure doThat; begin end; procedu

[fpc-pascal] [PATCH] TUploadedFile: some improvements

2014-01-23 Thread silvioprog
Hello, Please see in: http://bugs.freepascal.org/view.php?id=25583 Thank you! -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo

Re: [fpc-pascal] *** GMX Spamverdacht *** Re: Strange message about mixed signed expression

2014-01-23 Thread Jürgen Hestermann
Am 2014-01-22 19:27, schrieb Florian Klämpfl: > - The unsigned types are something very unpascalish. Maybe. I started with UCSD-Pascal but I do not remember whether it already had unsigned integer types. I just searched for its Length result type on the net and found that it was integer too.

Re: [fpc-pascal] Include trunk fpcres location in fpc.cfg paths?

2014-01-23 Thread Reinier Olislagers
On 23/01/2014 15:20, Jonas Maebe wrote: > On 23 Jan 2014, at 15:09, Reinier Olislagers wrote: >> fpcres (and fpcjres) is not in the FPC bin directory, but in >> $(fpcdir)/utils/fpcres/bin/$(fpctarget) >> >> Would it be a good idea to let fpcmkcfg add an -e or -FD line to fpc.cfg >> automatically to

Re: [fpc-pascal] Include trunk fpcres location in fpc.cfg paths?

2014-01-23 Thread Jonas Maebe
On 23 Jan 2014, at 15:09, Reinier Olislagers wrote: I'm trying to get fpcup to natively compile FPC trunk+Lazarus on ARMHF and finally getting somewhere In the Lazarus part however I get lazbuild.lpr(1689) Error: resource compiler "fpcres" not found, switching to external mode fpcres (and

[fpc-pascal] Include trunk fpcres location in fpc.cfg paths?

2014-01-23 Thread Reinier Olislagers
Hi list, I'm trying to get fpcup to natively compile FPC trunk+Lazarus on ARMHF and finally getting somewhere In the Lazarus part however I get lazbuild.lpr(1689) Error: resource compiler "fpcres" not found, switching to external mode fpcres (and fpcjres) is not in the FPC bin directory, but

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-23 Thread Lukasz Sokol
On 22/01/14 21:23, waldo kitty wrote: [...] >> - associate the procedures (their pointers) to jump to with the >> valid bit masks in a new data type (- do you REALLY have that many >> procedures ? Or are they somewhat repeating themselves ?) > > it will be only two procedures IF i can do it like