Knapp wrote:
On Thu, Mar 5, 2009 at 6:04 AM, Jeff Wilson <[email protected]> wrote:
From: Zan Lynx <[email protected]>
for(i=0; i<x; i++) { print i } for unknown x may never halt, but:
I think you are missing a semicolon there.

But isn't there a limit to the maximum value that can be stored in x for a
particular implementation with finite resources, where it would halt
regardless?

--
Jeff Wilson - [email protected]

If you think that is C code then you are missing and 'f' not a ';'.
And if it is C code then the variable type would be set and there
would be a limit.
:-)

It was pseudo-C or Perlish of some kind. I wasn't going to write out an entire program.

And sure, in C at least variables always have a type which will limit their size, although that size could be 64 bits or 128 and the loop won't end until the heat death of the universe.

And in some other computer language, i might be an expanding variable (BigInt, forex) which just continues to grow larger as it counts up.

In the land of computer science *theory*, i and x are unlimited and may grow without bound, how about that? :-)
--
Zan Lynx
[email protected]

"Knowledge is Power.  Power Corrupts.  Study Hard.  Be Evil."
_______________________________________________
GurpsNet-L mailing list <[email protected]>
http://mail.sjgames.com/mailman/listinfo/gurpsnet-l

Reply via email to