Previous IDL Reference Guide: Procedures and Functions Next

COMPILE_OPT

Syntax | Arguments | Version History

The COMPILE_OPT statement allows you to give the IDL compiler information that changes some of the default rules for compiling the function or procedure within which the COMPILE_OPT statement appears.

We recommend the use of

COMPILE_OPT IDL2  

in all new code intended for use in a reusable library. We further recommend the use of

COMPILE_OPT idl2, HIDDEN  

in all such routines that are not intended to be called directly by regular users (e.g. helper routines that are part of a larger package).

Syntax

COMPILE_OPT opt1 [, opt2, ..., optn]

Arguments

optn

This argument can be any of the following:

Version History

5.3
Introduced
5.6
Added STRICTARRSUBS option
6.0
Added LOGICAL_PREDICATE option

  IDL Online Help (March 06, 2007)