comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Happy Reasons to use IDL 8.1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Happy Reasons to use IDL 8.1 [message #76349 is a reply to message #76218] Tue, 24 May 2011 14:28 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
FĂ–LDY Lajos writes:

> Probably IDL does not know about your image function and tries to
> subscript the image variable. Does compile_opt idl2 help?

Well, this occurs in a fresh IDL session, so image
is undefined. I've also checked to be sure no procedures
or functions named "image" are defined.

IDL> .reset
IDL> .compile -v 'C:\IDL\default\junk.pro'

img = image(image, /current)
^
% Syntax error.
At: C:\IDL\default\junk.pro, Line 4
% 1 Compilation error(s) in module $MAIN$.

Yes, Compile_Opt idl2 helps and seems to solve
the problem. Yet one more reason (if we need one!)
that this should finally be the default behavior!

The fact that I know how to work-around the problem
(naming my image "bob" also solves the problem!) doesn't
give me much satisfaction. What do you suppose the
problem is?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: graphics window
Next Topic: command in matlab analogous to scope_varname?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:56:35 PDT 2025

Total time taken to generate the page: 0.00368 seconds