issue-#36 support for long identifiers in StdInterpreter
Posted: Fri Apr 03, 2015 8:24 am
This is a rather simple request from CPC 1.7 rc5.
The module StdInterpreter only supports identifiers up to 31 characters long, which
is not aligned with the CP compiler (255). In some rare situations longer
identifiers are needed as reported by Rainer Neubauer.
A proposal exists in CPC 1.7 rc5 but some changes seem to be needed.
1. The proposal uses ARRAY 64 OF CHAR. The correct solution would be to use
Kernel.Name, because this is what the CP compiler really uses and thereby
ALL valid CP identifiers are supported.
2. For scanning numbers there is no need to change the limit from 32 to 64
or something else. Numbers are not related with identifiers.
So I left this limit unchanged until somebody brings up a case where larger numbers are needed.
Please have a look at the changes in http://redmine.blackboxframework.org/pr ... 6c0b6dd519.
- Josef
The module StdInterpreter only supports identifiers up to 31 characters long, which
is not aligned with the CP compiler (255). In some rare situations longer
identifiers are needed as reported by Rainer Neubauer.
A proposal exists in CPC 1.7 rc5 but some changes seem to be needed.
1. The proposal uses ARRAY 64 OF CHAR. The correct solution would be to use
Kernel.Name, because this is what the CP compiler really uses and thereby
ALL valid CP identifiers are supported.
2. For scanning numbers there is no need to change the limit from 32 to 64
or something else. Numbers are not related with identifiers.
So I left this limit unchanged until somebody brings up a case where larger numbers are needed.
Please have a look at the changes in http://redmine.blackboxframework.org/pr ... 6c0b6dd519.
- Josef