Re: [fpc-pascal] Metaware

2007-06-20 Thread Vinzent Hoefler
On Wednesday 20 June 2007 06:55, Mark Wood wrote: [iterator functions with yield()] > It strikes me that whilst it may not be the best programming form, > the same thing could be done readily with a global variable? Not if you call such an iterator several times at once (in nested loops for exam

Re: [fpc-pascal] Metaware

2007-06-20 Thread memsom
> About three years ago, when this project was first proposed, I did find > a white-paper written by someone at Metaware which outlined the > internals of the yield(). And the code runs in a single thread or concurrently? Looks like it would be nigh on impossible to translate the code as it stan

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

2007-06-18 Thread Darius Blaszijk
Tom Walsh wrote: Daniël Mantione wrote: Wow... I doubt I would recognize that code as Pascal if I wasn't told it was. Free Pascal implements the UCSD-Pascal derived dialects of the language (Turbo Pascal, Delphi, Metrowerks Pascal). Daniël == begin export (li

Re: [fpc-pascal] Metaware

2007-06-18 Thread Tom Walsh
Daniël Mantione wrote: Wow... I doubt I would recognize that code as Pascal if I wasn't told it was. Free Pascal implements the UCSD-Pascal derived dialects of the language (Turbo Pascal, Delphi, Metrowerks Pascal). Daniël == begin export (libdos4); { Include

Re: [fpc-pascal] Metaware

2007-06-18 Thread Tom Verhoeff
On Mon, Jun 18, 2007 at 10:26:06AM -0400, Tom Walsh wrote: > Heh, if you are reading this then you may know what Metaware is? Unfortunately for you, I have no such experience; never heard of it. > Another "interesting feature" is a #define statement which is very much > like a C macro: > #define

Re: [fpc-pascal] Metaware

2007-06-18 Thread Daniël Mantione
Op Mon, 18 Jun 2007, schreef Tom Walsh: > Heh, if you are reading this then you may know what Metaware is? > > I've a large(!) body of code written over the years under the Metaware > Professional Pascal compiler. This code is to be translated to run on the fpc > compiler. > > I wonder if anyo

[fpc-pascal] Metaware

2007-06-18 Thread Tom Walsh
Heh, if you are reading this then you may know what Metaware is? I've a large(!) body of code written over the years under the Metaware Professional Pascal compiler. This code is to be translated to run on the fpc compiler. I wonder if anyone out there has attempted such an endeavor and migh