<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span style="background-color: rgba(255, 255, 255, 0);"><b>> chris</b> <a href="mailto:oberon%40lists.inf.ethz.ch?Subject=Re:%20Re%3A%20%5BOberon%5D%20Procedure%20variables%20and%20local%20procedures&In-Reply-To=%3C20170930115641240305.32164927%40gcjd.org%3E" title="[Oberon] Procedure variables and local procedures">chris at gcjd.org </a> <i>Sat Sep 30 11:56:41 CEST 2017</i></span></div><div>></div><div>> I <span style="background-color: rgba(255, 255, 255, 0);">mean things like:</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> TYPE CharPtr = POINTER TO ARRAY OF CHAR;</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> VAR
p : CharPtr;</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> BEGIN
NEW(p, 1234);</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> There is nothing low level here. That is a widely used feature</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> in ETH
Oberon (System 3)</span><span style="background-color: rgba(255, 255, 255, 0);"> or</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> whatever you call it today. What</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> is wrong with
this? Even if I had to</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> write a string librarary for UTF8 I</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> would use
this feature for the</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> buffers internally and not linked list</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> of fixed
(compile time determined)</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> sized pieces.</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> </span></div><div><span style="background-color: rgba(255, 255, 255, 0);">> Greeting, chris</span></div><div><br><div>If you really need this the ability to call NEW(p, 1234) in Oberon-07, you can just add it back from</div></div><div><br></div><div>g<a href="https://github.com/andreaspirklbauer/Oberon-generic-heap-allocation">ithub.com/andreaspirklbauer/Oberon-generic-heap-allocation</a></div><div><br></div><div>However, don't expect backward compatibility with Oberon-07 ;-)</div><div><br></div><div>-AP</div></body></html>