[futurebasic] Re: [FB] parameters & more

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1998 : Group Archive : Group : All Groups

From: Greg_Neagle@...
Date: Wed, 30 Dec 1998 14:26:28 -0800
In message ID <511566b1.368a69a0@...> on 12/30/98,Lucy24@... wrote:

> On to a completely unrelated question (just not important enough to merit a
> fresh subject header). I was doing some stuff with rgnBbox'es, and it didn't
> work. Finally pinned it down to a simple typo:
>   temprgn&.rgnBbox.left% (one dot)
> by mistake for
>   temprgn&..rgnBbox.left% (two dots)
> No errors, it just didn't do anything. (Obvious disclaimer: no
> errors _visible to the naked eye_ --for all I know, it was
> overwriting a huge chunk of memory that the app happened not to be
> using just then.) But I'm curious-- does anyone know what FB or the
> compiled app _thought_ it was doing when it encountered that single dot?

Sure - it was dereferencing a pointer instead of a handle.  Equivilent to:

PEEK WORD(temprgn&+_rgnBbox+_left)
versus
PEEK WORD([temprgn&]+_rgnBbox+_left)

- via BulkRate