Skip to content

IDL Problem Code 30 with alias reserved-func

Want to disable me? Check out the configuration guide to learn more.

Warning

Potentially fatal error depending on if the internal routine is written in PRO code or in core IDL/ENVI

This identifies when user-defined functions match the same name as routines internal to IDL.

Problem Example 1

idl
function label_region
  ;      ^^^^^^^^^^^^ reserved function

  ; ... logic

  return, 1
end

To fix, change the name of your routine:

idl
function my_label_region
  ;      ^^^^^^^^^^^^^^^ no name conflict

  ; ... logic

  return, 1
end

Licensed under MIT.