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 that...

[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] *** 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.

[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;

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 define a

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 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

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

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

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