[futurebasic] coding definitions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2002 : Group Archive : Group : All Groups

From: Emmett <ticktock@...>
Date: Sun, 9 Jun 2002 16:55:49 -0700
Hi,
In the following code what is cpuPPC and CarbonLib? I know 
CentralProcessingUnitPowerPC and CarbonLibrary but I cannot find 
reference to the usage of these words. They are not FB constants and 
doing a TOOLBOX info turns up nothing. A variable? I don't see a DIM 
for them anywhere?

#IF cpuPPC
   #IF CarbonLib = 0
      LIBRARY "MenusLib"
   #ENDIF
#ENDIF

Does this have something to do with it?
Symbol: #
Example: #parameter
Description:
If a function or proceedure expects to receive a
variable (to which it may point for an address) as a
parameter, you cannot substitute a specific address.
The pound (#) symbol overrides that feature and
tells FB not to convert the parameter to an address.

One more thing: What does it mean when _constant is enclosed in 
either a curly brace or bracket? variable% = {_constant} or variable& 
= [_constant]
or like this: variable& = [[[variable&] + _globalvariable]]
--