[Oberon] Realloc function and simulating continue and break in Oberon-07 loops

Deadmarshal adeadmarshal at gmail.com
Thu Oct 20 21:14:42 CEST 2022


Hi,

I was wondering how one can break and continue loops in Oberon-07?
In Oberon-2 there is a LOOP keyword which has EXIT to break the loop, but
it is removed from Oberon-07, and the EXIT keyword can't be used in FOR or
WHILE loops.
I was also wondering if a realloc() function similar to C can be made in
Oberon? Because it can be used to create dynamic arrays much like the CPP's
std::vector. I am well aware that I could use a linked list for that
purpose, but I'm curious about dynamic arrays.

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20221020/cb13ec65/attachment.html>


More information about the Oberon mailing list