4 ms·
> Low-level operations are done with magical functions that simple perform an operation on a memory address identified with an integer, just exactly like in C!
by enriquto 7y ago
> Low-level operations are done with magical functions that simple perform an operation on a memory address identified with an integer,
just exactly like in C! What's the difference besides the particular syntax?
- coldtea 7y ago>just exactly like in C! What's the difference besides the particular syntax? On that part none. But Oberon is "memory-safe and garbage-collected", so you don't use that aspect for 99% of the program (whereas in C everything is like that).
- Athas 7y agoNone, but in C you use the same language mechanism for following an object reference (safe in the absence of manual memory management), indexing an array, and doing crazy address arithmetic. In Oberon, safe and unsafe operations are clearly distinguished.
- augustk 7y ago> In Oberon, safe and unsafe operations are clearly distinguished. Indeed! To use the unsafe (predefined) procedures you must import the pseudo-module SYSTEM.