1 Oct 2011 08:58
Re: SVN: james/4822 Fix crash in sliceedit.bas. Several arrays were being staticly DIMed whe
Ralph Versteegen <teeemcee <at> gmail.com>
2011-10-01 06:58:55 GMT
2011-10-01 06:58:55 GMT
On 1 October 2011 04:15, James Paige <Bob <at> hamsterrepublic.com> wrote: > On Fri, Sep 30, 2011 at 03:37:59PM +1300, Ralph Versteegen wrote: >> On 29 September 2011 18:12, <subversion <at> hamsterrepublic.com> 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 = <at> plotslices(1) > > I was wondering what the meaning of plotslicesp is. It didn't seem to > have any obvious purpose. >(Continue reading)
RSS Feed