-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBUGS
More file actions
49 lines (36 loc) · 1.29 KB
/
BUGS
File metadata and controls
49 lines (36 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
List of BUGS for the C Ratfor preprocessor.
---
Due to the way C Ratfor performs translation of relational shorthands,
error messages involving them might sometimes result slighty botched and
unclear. For example, the following input:
function &&
produced the diagnostic:
"invalid function name `.and.'"
instead of the more precise one:
"invalid function name `&&'"
---
This is a limitation rather than a bug.
Defining a symbol (with the `define' builtin) to an expression containing
that same symbol will led to a silent infinite recursion, and ratfor will
hang. An example of this situation:
define SYM SYM
A more convoluted example:
define SYM1 SYM2
define SYM2 SYM3
define SYM3 SYM1
---
This is not a bug but a design error in both AT&T Ratfor and this C Ratfor.
The problem is with the switch statement.
It switches on an integer valued expression.
It should switch on an integer variable.
The reason is that
"implicit undefined"
"implicit null"
is unusable because the switch is done on a new variable that
is not declared or declarable by the programmer who cannot guess
its name.
---
This is a limitation rather than a bug.
Ratfor *absolutely* does not work on non-text input: if feeded such an
input, it might output gibberish, crash or even hang indefinitely (!)
---