File: BUGS

package info (click to toggle)
gp2c 0.0.5pl2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,508 kB
  • ctags: 1,114
  • sloc: ansic: 8,284; sh: 544; lex: 337; yacc: 158; makefile: 135
file content (53 lines) | stat: -rw-r--r-- 1,397 bytes parent folder | download | duplicates (3)
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
50
51
52
53
Probably not countable.

--- bittest(x:small,y:small) is wrong if y>31

--- x:small%y:small cannot use % in C because -2%3 would be wrong

Things that are poorly implemented:
----------------------------------

--- Array (vector, matrix) may be disconnected in the stack.

--- vector() and matrix() do not garbage collect.

--- Garbage collecting should always be done after a loop.

--- Code generated for "a=if(b,c,d)" constructs is ugly.

--- user-defined member functions should be inlined

Things that are not implemented:
--------------------------------

--- a[b,]+=c

--- issquare(4,&a[b,])

--- Numerical derivative because it is static to anal.c

--- Embedded function definitions. f(x)=g(y)=x+y

--- Complex statement like sumalt, etc... No interface in the library.

Discrepancy between gp2c and gp:
--------------------------------

--- =\n= is allowed by gp, but not by gp2c. Don't cry.

--- Spaces in middle of term like (a b==ab) are not allowed. Be sensible.

--- gp2c does not allow functions named local() to be called.

--- "error" output PARI errors, not user errors.

--- gp2c is generally more lenient than gp about syntax.

--- Do not catch misuse of GP 'global()' vars.

--- Scope of variable after function call are not the same in GP and
    in C. This is very problematic.

--- Use of small may lead to overflow problems.

--- return() can return 0 instead of nothing.