|
|
|
|
|
This file holds the error messages that have been improved or added.
|
|
|
|
|
|
# Starting functions with _
|
|
|
|
|
|
This was actually an error that should have been raised, but it did not.
|
|
|
|
|
|
The message for invalid function names simply reads: `invalid function name `%s' found`.
|
|
|
|
|
|
I added a specific case for when a function name written by the programmer starts with an _
|
|
|
|
|
|
A [MR](https://gitlab.sac-home.org/sac-group/sac2c/-/merge_requests/362) was made for this but maybe its not the best solution to the problem of compiler generated functions.
|
|
|
|
|
|
## On a function call:
|
|
|
|
|
|
Sorry, but only primitive functions are allowed to start with an _ (underscore) character. The name '%s' does not look like a primitive function application. Please remove the underscore.
|
|
|
|
|
|
## On a function definition:
|
|
|
|
|
|
Sorry, but function definition names are not allowed to start with an _ (underscore) character, but your '%s' function starts with an underscore. Please remove it. |
|
|
\ No newline at end of file |