Jump to content

Benefits of using directives?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
NinjaTool

NinjaTool

    Newbie

  • Members
  • PipPip
  • 11 posts
Hello Coders,

I am fairly new to programming and I was wondering if there are any benefits to placing directives only where they are needed, such as program running time? Does anyone notice a difference in speed when placing directives in the proper functions as apposed to making them available to the whole program?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
A directive only exists at compile time. At run time, a directive has already been processed, resulting in the code either existing or not existing.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users