[futurebasic] Re: [FB] looking for proof

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2001 : Group Archive : Group : All Groups

From: Chris Stasny <staz@...>
Date: Mon, 19 Feb 2001 16:34:12 -0600
>  > I find assigning register vars before the FN statement to be a nifty
>  > shorthand. The other way to do it would be this:
>  >
>  > REGISTER OFF
>  > local fn test(addr1 as ptr,addr2&)'These are RAM vars
>  > REGISTER ON
>  > dim r1,r2,r3,r4,r5,r6,r7,r8'Fill up registers
>  >
>  > Apparently the compiler assigns registers in the order it encounters
>  > eligible vars.
>
>Really? Staz, is this how it is meant to be? I always thought the function
>parameters were assigned to the registers preferentially even if you had
>local vars defined beforehand.
>
>--


I just ran this code thru the source debugger and it is indeed true.

I'll be durned.



Best,

-STAZ  ~)~

800.348.2623 Orders  http://www.stazsoftware.com
228.255.7086 FAX     mailto:staz@...