[Oberon] Procedure variables and local procedures

Andreas Pirklbauer andreas_pirklbauer at yahoo.com
Sat Sep 30 12:54:23 CEST 2017


> chris chris at gcjd.org  Sat Sep 30 11:56:41 CEST 2017
>
> I mean things like:
>
>   TYPE CharPtr = POINTER TO ARRAY OF CHAR;
>
>  VAR p : CharPtr;
>  BEGIN NEW(p, 1234);
>
> There is nothing low level here. That is a widely used feature
> in ETH Oberon (System 3) or
> whatever you call it today. What
> is wrong with this? Even if I had to
> write a string librarary for UTF8 I
> would use this feature for the
> buffers internally and not linked list
> of fixed (compile time determined)
> sized pieces.
> 
> Greeting, chris

If you really need this the ability to call NEW(p, 1234) in Oberon-07, you can just add it back from

github.com/andreaspirklbauer/Oberon-generic-heap-allocation

However, don't expect backward compatibility with Oberon-07 ;-)

-AP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20170930/97b13429/attachment.html>


More information about the Oberon mailing list