"Recursion, need more stack space."_(re)
Mon, 16 Jun 1997 12:37:59 +0100 (WET DST)
On Mon, 16 Jun 1997, Frank Heckenbach wrote:
>
> First the good news: in c.l.p.b (the same subject as this mail), someone
> wrote:
>
> "Anyway, I found this book in the library called "Programming Languages"
> by Herbert G.Mayor.
> In the book it has a program written in Algol-60 by Donald Knuth, which
> is highly recursive etc.etc, and it was written to separate the 'boy
> compilers' from the 'man compilers'.
> The book states, that modern computers are able to run the program with
> ease."
>
> Guess what: the program compiled and ran fine with gpc, but couldn't
> possibly compile with BP. :-)
>
:-) :-) Pathetic 64K limits :-) :-)
[..]
> Another little bug I just found:
>
> program x;
> var x:real value 0; {"initial value is of wrong type}
> begin
> end.
It's not a bug, I believe.
>From ISO 10206:1990, sec 6.1.7:
unsigned-rel = digit-sequence `.' fractional-part [ `e' scale factor ]
| digits-sequence `e' scale factor
I see a simular definition in my Turbo pascal Programmer's Guide, so
BP should not accept it either.
Try to make it "0.0" or "0e0"
JanJaap
---
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead. -- RFC1925.
Jan-Jaap van der Heijden (janjaap@Wit381304.student.utwente.nl)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es