[Prev][Next][Index][Thread]
Re: Dynamic typing confuses me!
"Bertrand Augereau" <baugereau@ifrance.kom> writes:
> Why does this code give a run-time error?
It should give you a compile-time error here:
> begin
> main();
> end;
This is not Pascal, and begin..end is not valid. Just write
fact(5);
on the toplevel, and it should work. The rest of the code looks ok.
Andreas
--
"In my eyes it is never a crime to steal knowledge. It is a good
theft. The pirate of knowledge is a good pirate."
(Michel Serres)
Follow-Ups:
References: