[gurps] Failing autopilots and RVO

Anthony Jackson ajackson at iii.com
Thu Mar 5 11:46:35 CST 2009


Jeff Wilson wrote:
>> From: Zan Lynx <zlynx at acm.org>
>> 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?

Sure, but if you change it to:

int i, x;
for(i=0; i<x; i+=2) { printf("%d\n", i ); }

it will in fact never terminate if x = MAXINT and MAXINT is an odd number.


More information about the GurpsNet-L mailing list