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
> 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
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
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
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
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
> 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
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
> '?' 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
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
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
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
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
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
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
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
16 matches
Mail list logo