IDL Problem Code 8
with alias illegal-arrow
Want to disable me? Check out the configuration guide to learn more.
Execution Error
This is a fatal error that prevents IDL from compiling or running code
Best Practice
For modern IDL programming, we prefer users use the dot notation instead of arrow.
idl
p = plot(/test)
p.save
idl
p = plot(/test)
p->save
This identifies arrow operators ->
where they shouldn't be encountered.
The arrow operator should only be used to call a routine method.
Here's an example of where this error gets reported:
idl
p = plot(/test)
p->
;^^ illegal arrow
To fix it, add in the method call or remove the bad code:
idl
p = plot(/test)
p->save
;^^^^^^ OK!
idl
p = plot(/test)