<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jan 7, 2017 at 6:53 PM, Bart <span dir="ltr"><<a href="mailto:bartjunk64@gmail.com" target="_blank">bartjunk64@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">OK, I can imagine more complex examples where this may come in handy.<br>
<br>
And thanks for the rest of the explanation.</blockquote><div><br></div><div>And only more complex examples should be used :) </div><div>There're much better ways to implement var-type variables.</div><div><br></div><div>I was always thinking that having untyped variables in Pascal is more a syntactical advantage, whenever a Pascal need to target managed platforms (i.e. Net or Java). These platforms don't any kind of pointers at all.</div><div>Thus a code written using pointers would not even compile on them.</div><div><br></div><div>Thus using open arrays (of bytes) and untyped variables would be a good replacement for pointers whenever writing a cross-platform code (meaning a code that would need to target both non-managed and managed platforms)</div><div><br></div><div>Not sure, but pascal JVM has its own means of dealing with pointers anyway. </div><div>My knowledge is poor on the subject of jvm, but it's well explained in the wiki!</div><div><br></div><div>thanks,</div><div>Dmitry</div></div></div></div>