View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Is anything wrong here?

douglas brenner wrote on Apr 27, 2009

procedure test

struct *imglist

begin
string img

imglist = "filenumbers.lis"

while(fscan(imglist, img) != EOF)
{
print(img)
}
end

Mike Fitzpatrick wrote on Apr 27, 2009

Shouldn't be a problem unless you declare the procedure without parameters, i.e. as "task $test = test.cl" where the '$' means no-params. Anything declared before the 'begin' is a parameter, and struct params are always declared before the 'begin'. Otherwise, it runs for me. What's the problem?

-Mike

douglas brenner wrote on Apr 27, 2009

I don't know what's wrong. The User's guide doesn't make that clear. However, I must have tried that at least once. Anyway now it works. How did you do that?
javascript:emoticon(':shock:')

Last post on Apr 27, 2009