[ooc-compiler] Unsafe pointers on the stack
Brought to you by:
mva
|
From: August K. <fus...@co...> - 2005-05-26 00:47:05
|
If I compile and run the following program I get a segmentation fault
rather that a run time exception.
MODULE Test;
PROCEDURE P;
VAR p: POINTER TO ARRAY OF LONGINT;
BEGIN
p[0] := 1
END P;
BEGIN
P
END Test.
So in this regard the above program compiled with OOC is just as unsafe
as a C program. Wasn't the elimination of wild pointers one of the
design criteria of Oberon?
-- August
|