At 12:01 PM -0400 10/17/00, Robert Wingate wrote:
> >> But isn't doing a #define the same as assiging a value to
>>> variable in the preprocessor?
>
>> Not really. A #define is a constant, not a variable. If I recall
>> correctly, #define statements are technically macros and can be
>> used to replace code in-line.
>
>Exactly right-o; I meant that defining a variable as a constant at the
>compiler level is similar to pound-defining at the preprocessor level. That
>is, this code...
>
>on prepareMovie
> kPi = pi()
> kFriction = 0.998
>end
>
Yes, but don't forget to declare variables like this as global:
global kPi
global kFriction
Many people have a convention of using a prefix of "g" for globals, e.g.,
global gkPi
global gkFriction
Irv
--
Lingo / Director / Shockwave development for all occasions.
(Over two millions lines of Lingo code served!)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]