<p>Am 20.07.2017 13:01 schrieb "Bo Berglund" <<a href="mailto:bo.berglund@gmail.com">bo.berglund@gmail.com</a>>:<br>
><br>
> On Thu, 20 Jul 2017 11:11:50 +0200, Maciej Izak<br>
> <<a href="mailto:hnb.code@gmail.com">hnb.code@gmail.com</a>> wrote:<br>
><br>
> >2017-07-20 11:03 GMT+02:00 Bo Berglund <<a href="mailto:bo.berglund@gmail.com">bo.berglund@gmail.com</a>>:<br>
> ><br>
> >> So since I don't really want to use a global, is it possible to<br>
> >> declare a local variable static in the sense that it retains its<br>
> >> values across calls to the procedure?<br>
> >> If so how is it done?<br>
> >><br>
> ><br>
> >procedure foo;<br>
> >{$PUSH}<br>
> >const{$J+}<br>
> > s : string ='';<br>
> >{$POP}<br>
><br>
> Thanks,<br>
> but it looks a bit involved, probably better to use an object field<br>
> variable instead only accessible from the internal methods.</p>
<p>If you don't want to use $push/$pop then you can also simply enable $J+ for the whole unit. But this will also mean that global constants are writable.</p>
<p>Regards,<br>
Sven</p>