Duncan Parsons wrote:
Must confess, I feel "arr:[0..end] of " makes more sense to me than use of "var" or 
"..]" The latter suggests something forgotten or a typo.

I agree that just leaving out the ending limit is against the spirit of Pascal.

I can live with the syntax of MyArray:[0..var] or MyArray:[0..end] but I'd prefer a syntax that does not use a word, such as MyArray:[0..*] or MyArray:[0..?]. That way there is no confusion about a user-defined word and the use of the currently reserved words is not changed. In other words, this is a situation that is exactly why we have punctuation and not the cobol-ish "Declare MyArray to be from 0 to end of TSomeType"!

--
Doug C.
-----
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to