About Named Programs

Longer routines and programs, consisting of more than a few lines, are typically given their own explicit names, allowing them to be called from other programs as well as executed at the IDL command line. Named programs are stored in disk files created using a text editor. The IDL Workbench includes a built-in text editor, but any text editor can be used to create named IDL programs. Files containing IDL programs, procedures, and functions are assumed to have the filename extension .pro.

Note
Although any text editor can be used to create an IDL program file, the IDL Editor contains features that simplify the process of writing IDL code. See Command Line Tips and Tricks for details on using the IDL Editor.

Most IDL applications consist of one or more IDL procedures, functions, object definitions, and object method routines:

See the following section for a simple procedure that calls a function. See Creating Procedures and Functions for details on creating and calling procedures and functions, defining argument and keyword parameters, and using keyword inheritance.

Note
See Library Authoring for information on procedure naming.