[futurebasic] Re: [FB] [FB3] passing.... uh.... vars

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

From: Robert Purves <robert.purves@...>
Date: Wed, 1 Dec 1999 14:44:33 +1300
>> Whew! What a throwaway line!  ...  On investigating, it seems
>> that more than 7 parameters is always OK in 68K and sometimes but _not_
>> always in PPC. The governing rules are unclear (as well as being
>> undocumented).

>To throw a little more into the mix... I was unable to get the parameters to
>pass correctly (after Staz's fix) until I put the string vars behind the
>interger variables....

>FN doSomething(aStr$,bStr$,cStr$,aInt%,bInt%,cInt%,dInt%) < -- Didn't work
>FN doSomething(aInt%,bInt%,cInt%,dInt%,aStr$,bStr$,cStr$) < -- Worked


Al, can you be more specific? If you're right there is another important
bug lurking. If you're wrong you just scaring us Big Time :-)
I don't find anything wrong with these 7-parameter FNs.

'------------------------------------------------
local FN doSomething(aStr$,bStr$,cStr$,aInt%,bInt%,cInt%,dInt%)
print aStr$;bStr$;cStr$;aInt%;bInt%;cInt%;dInt%
end fn

local FN doSomething2(aInt%,bInt%,cInt%,dInt%,aStr$,bStr$,cStr$)
print aInt%;bInt%;cInt%;dInt%;aStr$;bStr$;cStr$
end fn

FN doSomething("1","2","3",4,5,6,7)  '< -- seems OK in 68K and PPC
FN doSomething2(1,2,3,4,"5","6","7") '< -- seems OK in 68K and PPC
'---------------------------------------------------

Robert P.