On Fri, Feb 22, 2008 at 1:01 PM, <[EMAIL PROTECTED]> wrote: > james > 2008-02-21 16:01:57 -0800 (Thu, 21 Feb 2008) > 217 > Work around bug 577. If you use REDIM PRESERVE on an array of UDTs > while inside a WITH block, the WITH's pointer will be orphaned for > the remainder of the block. > > Hard to discover, but now that I know, easy to avoid. > --- > U wip/game.bas > U wip/whatsnew.txt
I just discovered another WITH pitfall: if you GOSUB out of a WITH block, the WITH pointer can be overwritten. We know we're not meant to GOSUB out of a scope with temporary variables (actually I totally forgot about this myself), but it didn't occur to me that a WITH block creates a temporary variable. We do this in several places, and it's pretty odd/lucky that I only just now tripped up on this. _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
