next up previous contents
Next: Procedures Up: Lecture 2: Programming in Previous: wheretomulti   Contents

Defining functions and procedures (and scripts)

Our examples so far have been too short to break up into sub-programs. However, any sizeable IDL project (infact any computer coding) will be easier to deal with if each specific task is put into its own sub-program, which your main program can call. You can then reuse these

Sub-programs in IDL come in three flavours:

  1. functions
  2. procedures
  3. scripts



Subsections

lecjm 2008-11-06