Re: [fpc-pascal] Metaware

2007-06-19 Thread Mark Wood
It strikes me that whilst it may not be the best programming form, the same thing could be done readily with a global variable? M. Tom Walsh wrote: Mark Wood wrote: I have found that there are some functional differences that Metaware has over fpc, one example is the yield() function which

Re: [fpc-pascal] Metaware

2007-06-19 Thread Tom Walsh
Tom Walsh wrote: Mark Wood wrote: I have found that there are some functional differences that Metaware has over fpc, one example is the yield() function which returns the intermediate result of a function call. ? '?' indeed! I am fascinated! What does yield do exactly... presumably

Re: [fpc-pascal] Metaware

2007-06-19 Thread Tom Walsh
memsom wrote: '?' indeed! I am fascinated! What does yield do exactly... presumably it returns a result from the function without closing down that instance of the function? Amazing concept. I suspect - given the word "DOS" in some of the code, it allows a DOS event loop to continue in a s

Re: [fpc-pascal] Metaware

2007-06-19 Thread Tom Walsh
Mark Wood wrote: I have found that there are some functional differences that Metaware has over fpc, one example is the yield() function which returns the intermediate result of a function call. ? '?' indeed! I am fascinated! What does yield do exactly... presumably it returns a resul

Re: [fpc-pascal] Metaware

2007-06-19 Thread memsom
> Nope. It's that what Mark thinks, and more like (Python's) generator > thingie (link posted by Luca): Rght.. like: insert into blah (test) values(1); insert into blah (test) values(2); insert into blah (test) values(3); insert into blah (test) values(4); create procedure test() returns(r

Re: [fpc-pascal] Metaware

2007-06-19 Thread Vinzent Hoefler
On Tuesday 19 June 2007 11:48, memsom wrote: > > '?' indeed! I am fascinated! What does yield do exactly... > > presumably it returns a result from the function without closing > > down that instance of the function? Amazing concept. > > I suspect - given the word "DOS" in some of the code, it allo

Re: [fpc-pascal] Metaware

2007-06-19 Thread memsom
> '?' indeed! I am fascinated! What does yield do exactly... presumably it > returns a result from the function without closing down that instance of > the function? Amazing concept. I suspect - given the word "DOS" in some of the code, it allows a DOS event loop to continue in a single threaded c

Re: [fpc-pascal] a book about freepascal [off-topic]

2007-06-19 Thread Joao Morais
Flávio Etrusco wrote: There are many Portuguese speakers in the list that certainly will be glad to help too ;-) Best regards, Flávio (from Brazil) Yup. I have started a thread in the Lazarus mailing list where only PT-BRs participated. =) -- Joao Morais

Re: [fpc-pascal] Metaware

2007-06-19 Thread Luca Olivetti
En/na Mark Wood ha escrit: I have found that there are some functional differences that Metaware has over fpc, one example is the yield() function which returns the intermediate result of a function call. ? '?' indeed! I am fascinated! What does yield do exactly... presumably it retu

Re: [fpc-pascal] Problem with array [Boolean]

2007-06-19 Thread Jonas Maebe
On 19 jun 2007, at 10:50, Felipe Monteiro de Carvalho wrote: I just suposed that on the backtrace gdb would show exactly where the exception occured. There were more functions called at the point where the exception really happens ... I don't know why he skiped some. Debuging with the IDE step-

Re: [fpc-pascal] Problem with array [Boolean]

2007-06-19 Thread Felipe Monteiro de Carvalho
On 6/19/07, Jonas Maebe <[EMAIL PROTECTED]> wrote: Without compilable example code, that is impossible to say. Sorry for the noise, I found the problem =) Inside the DrawTo function code there is a cast to an interface which isn't implemented. I just suposed that on the backtrace gdb would sh

Re: [fpc-pascal] Metaware

2007-06-19 Thread Mark Wood
I have found that there are some functional differences that Metaware has over fpc, one example is the yield() function which returns the intermediate result of a function call. ? '?' indeed! I am fascinated! What does yield do exactly... presumably it returns a result from the functi

Re: [fpc-pascal] Problem with array [Boolean]

2007-06-19 Thread Jonas Maebe
On 18 jun 2007, at 22:06, Felipe Monteiro de Carvalho wrote: Breakpoint 1, 0xe0a6 in fpc_raiseexception () (gdb) bt #0 0xe0a6 in fpc_raiseexception () #1 0x00056682 in SYSUTILS_RUNERRORTOEXCEPT$LONGINT$POINTER$POINTER () #2 0x00010fd7 in SYSTEM_HANDLEERRORADDRFRAME$LONGINT$POINTER $

Re: [fpc-pascal] CheckSynchronize

2007-06-19 Thread Jonas Maebe
On 18 jun 2007, at 19:48, Vincent Snijders wrote: Is it our fault that we call CheckSynchronize nested (i.e. indirectly from a synchronized method) or is a CheckSynchronize not smart enough not to call the synchronized method (i.e MyMessage) twice, even if Synchronize is called only once f