On Fri, Sep 30, 2011 at 03:37:59PM +1300, Ralph Versteegen wrote:
> On 29 September 2011 18:12,  <[email protected]> wrote:
> > james
> > 2011-09-28 22:12:00 -0700 (Wed, 28 Sep 2011)
> > 116
> > Fix crash in sliceedit.bas. Several arrays were being staticly DIMed when 
> > they should have been dynamically REDIMed
> > ---
> > U   wip/sliceedit.bas
> 
> May I suggest a convention of writing a REDIM statement without the
> 'as type' when resizing an existing array? I find the fact that REDIM
> is both a variable definition and a statement an infuriating feature
> of FB. However it seems that in some cases (global arrays), fbc can't
> even tell the difference itself, so we couldn't be totally strict
> about it.

Okay. I'll avoid adding the type to that kind of REDIM.

Oh! This reminds me! I noticed that some of our resizing arrays are 
accompanied by a pointer, like:

 REDIM PRESERVE plotslices(LBOUND(plotslices) TO UBOUND(plotslices) * 
1.5 + 32)
 plotslicesp = @plotslices(1)

I was wondering what the meaning of plotslicesp is. It didn't seem to 
have any obvious purpose.

---
James
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to