Array Issues with Comet32


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Jim Guerber on February 11, 2011 at 12:11:42:

When we designed the C32 runtime, I was adamant about starting arrays at element Zero not one. We even added an additional element to each dimension so that old code would continue to work.

The only problem is the format clause that allows specification of an array range.....

xxx: Format a(1,1),number*length

This was clearly an after thought by those compiler people back in 1973. (I know, I was there.)

The only problem with that syntax is it was meant for singly dimensioned arrays only, since you cannot specify a range for each subscript.

A much better syntax would be:

xxx: Format a(1 to 10,1 to 20)

Unfortunately, we must live with the past. The question is... what to do.

So, I propose that when the C32 runtime encounters the old syntax, it should ignore the Zeroth subscript for each dimension. We should implement some other syntax such as that above for those who want to use the new array model.

What do you think?



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]