[futurebasic] Re: [FB] coding definitions

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

From: gnome <gnome@...>
Date: Mon, 10 Jun 2002 02:02:51 +0200
Le lundi 10 juin 2002, à 01:55 , Emmett a écrit :

> 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]]

[] and {} are different types of PEEK -> PEEK WORD and PEEK LONG.
you should find info on them in the docs under 'peek'.

{_constant} will have disappeared now as it is a peek in the lowmem
addresses of the mac and so taboo. see alain's article on
'converting to carbon' at :
<http://www.stazsoftware.com/carbon/>
for examples of code to use instead.

as to the #IF construct, that is -- for me --
a conditional compile that will be resolved at compile time,
telling the compiler what code to add -- or not -- depending
on the compile target that you have chosen. it is not
to be confused with the 'passing an address'.

i'm sure that both of these are documented.

:-j