Page 2 of 2

Posted: Tue Jan 27, 2004 11:06 am
by Fred
Step (expression) is definitely a must have. I will try to implement it for the next version. Forget the DowTo stuff, I should be drunk ;)

Posted: Tue Jan 27, 2004 11:06 am
by blueznl
most basics i know simply use step with vars, i'd say keep it simple :-)

Posted: Tue Jan 27, 2004 2:15 pm
by LarsG
Fred wrote:...I should be drunk ;)
oh.. shouldn't we all!!! :mrgreen: :twisted:

Posted: Tue Jan 27, 2004 2:29 pm
by Dare2
LarsG wrote:
fred wrote:...I should be drunk
oh.. shouldn't we all!!!
Pass the bottle. :)

Posted: Wed Jan 28, 2004 2:58 pm
by Psychophanta
Mmmmh, Fred; should be possible to improve a "for-next" loop just identical like is in C :?: :idea:

Well, i don't say to replace the existing one, but to improve (add) a new for-next alternative. I thing this is perhaps the best point of C's power, besides of pointers, etc. :arrow:

For <assignment[,assignment[,...]]>,<(expression)>,<instruction[,instruction[,...]]>
;code
Next

PB would continue being a BASIC.

Posted: Wed Jan 28, 2004 4:08 pm
by plouf
Psychophanta wrote:Mmmmh, Fred; should be possible to improve a "for-next" loop just identical like is in C :?: :idea:

For <assignment[,assignment[,...]]>,<(expression)>,<instruction[,instruction[,...]]>
;code
Next
but this is not much sense (at least to me) i know a bit of c :wink:
this can be done extremly easy with while loop

<assignment[,assignment[,...]]>
while <(expression)>
...
<instruction[,instruction[,...]]>
wend

(in c the while is a useless command its fuctionality can be done with for)

Posted: Wed Jan 28, 2004 5:54 pm
by blueznl
sorry, fred, synchronous posting :-)

but ehm.. while useless in c++? readability...

Posted: Wed Jan 28, 2004 7:01 pm
by Psychophanta
Plouf wrote:
(in c the while is a useless command its fuctionality can be done with for)
That's absolutely true.
And if PB include a For-Next loop as i suggested, then While-Wend should be useless in PB too :wink:

blueznl wrote:
but ehm.. while useless in c++? readability...
Readability? In C ? Are you joking? Isn't preferable ASM for readability ? :?

Posted: Wed Jan 28, 2004 11:43 pm
by Dare2
Readability? In C ? Are you joking? Isn't preferable ASM for readability ?
hehe. :D
Also the General Theory of Relativity.

Posted: Thu Jan 29, 2004 11:45 am
by Psychophanta
Yeah! that astrophysic theory is cleverly posted here :!: :D
All is inside astrophysics, including all of us...

Posted: Mon Jun 29, 2009 11:21 am
by Octopus
Despite of the problem initially mentioned I nevertheless vote for having a FOR ... DOWNTO language element within PB. This is because there often are also additional tests inside a FOR ... NEXT loop against the final barrier. Thus it would help and probably speed up, if that could be done against a zero value, which often is the natural loop bottom boundary.