[J3] Questions about dusty CDC 3400 deck

Steve Lionel steve at stevelionel.com
Sun Mar 24 20:59:59 UTC 2024


On 3/24/2024 4:30 PM, Van Snyder via J3 wrote:
> The program changes a DO index. Does anybody remember whether that 
> changes the looping, or is that established when the DO statement is 
> executed?
Per the standard, it's not allowed. That said.. the standard establishes 
the loop count at the start of the loop, so changing the index would, 
theoretically, not change the count. I do know that DEC compilers (not 
sure about Intel) looked for code that might change the index and made 
it a tested loop instead - again, nonstandard.
>
> It references a 2D array using one subscript (albeit only in a PRINT 
> statement). Does anybody remember which element that would access? 
> Would it be the one in array-element order?

I've never seen that, but would guess that it's in array-element order.

Steve





More information about the J3 mailing list