Juha Manninen schrieb:
At least the error message could mention the actual number of entries, as
found in source code. This doesn't require any change to the language or
compiler, only an change to the error message generation.
lol, something like this?! :) sorry, my vds is down can't publish the
whole patch...
Wow, that would be surely better than the current message:
')' expected but ',' found (or something).
It seems to be reasonably easy to implement.
:-)
But still it feels little half-baked. The real solution would be to change
language syntax. Do you have an idea how much work the compiler (parser and
such) would need to implement the proposed syntax?
IMO a syntax change is not necessary, and it wouldn't help when the
array dimensions are described by an enumerated type, e.g.
array[TMyEnum] of ...
DoDi
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus