[Oberon] Should one automatically initalize local pointer or procedure variables (safety precaution)?
Andreas Pirklbauer
andreas_pirklbauer at yahoo.com
Mon Mar 4 19:25:06 CET 2019
> If pre-assigning NIL to pointers becomes an official part of the language then programmers will stop initializing on their own.
Correct. Or, alternatively, allow the programmer to write something along the lines of
VAR ptr: Ptr := NIL; (*declare a new pointer variable called ‘ptr’, and give it an initial value of NIL*)
But Oberon just isn’t such a language.
> I have not heard of Swift.
http://developer.apple.com/swift
http://docs.swift.org/swift-book/index.html
More information about the Oberon
mailing list