[futurebasic] Re: [FB] Dimming vars

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 1999 : Group Archive : Group : All Groups

From: Mark Goodes <wave@...>
Date: Mon, 2 Aug 1999 12:24:09 -0400
Richard Phillips wrote:
>    I assumed (here I go with those nasty assumptions again) that addresses
>were ONLY passed if we expressly instructed an address to pass by way of the
>VARPTR (@) instruction, just as you demonstrated in your example (shown

Ouch!  You caught me making an assumption too.  I assumed that string
variables were always passed via addresses, but I don't know for sure.  It
could be that the whole string is copied after all.

>    In what way does the automatic passing of an address ("...FB passes
addresses anyways...") allow for less control than is provided when we FORCE an
address to pass (using VARPTR, for example).

It just comes back to not trusting the compiler to do what you assume it's
doing.  I do a lot of low-level coding, so you get used to working with
addresses in many operations and Toolbox calls.  It just seems more natural
to me to pass an address than a string variable.  It's simply personal

Sorry to let my own personal biases get in the way of providing a clear
answer to your question. The lurkers will no doubt be highly entertained
from watching me scrape the egg off my face.

Mark Goodes (Toronto, Canada)