[Swift-user] Compile Error
Mihael Hategan
hategan at mcs.anl.gov
Tue Jun 22 15:04:12 CDT 2010
I thought I replied to it, but is seems not.
Yes, please post the exact script.
Mihael
On Tue, 2010-06-22 at 15:00 -0500, Michael Wilde wrote:
> Jon, can you try to re-create this problem in a simple Swift script?
>
> If so, Mihael, can you take a look and see if its a Swift error, and/or how to work around it?
>
> Thanks,
>
> Mike
>
> ----- "Jonathan Monette" <jon.monette at gmail.com> wrote:
>
> > Hello,
> > I am getting a compile error and not sure how to fix it.
> >
> > Could not start execution.
> > Compile error in foreach statement at line 81: Type
> > DiffStruct is not defined.
> >
> > I understand the error but I have defined DiffStruct at the top
> > of
> > the file.
> > type DiffStruct
> > {
> > int cntl1;
> > int cntl2;
> > Image plus;
> > Image minus;
> > Image diff;
> > }
> >
> > I have also declared Image as a type. Using Image gives me no
> > problems. The line that the error comes on is:
> >
> > foreach diff_entry, i in diffs
> >
> > where diffs is an array of DiffStruct that was created using the
> >
> > csv_mapper. Does anyone know what the problem is? Thanks in
> > advance.
> >
> > --
> > Jon
> >
> > Computers are incredibly fast, accurate, and stupid. Human beings are
> > incredibly slow, inaccurate, and brilliant. Together they are powerful
> > beyond imagination.
> > - Albert Einstein
> >
> > _______________________________________________
> > Swift-user mailing list
> > Swift-user at ci.uchicago.edu
> > http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>
More information about the Swift-user
mailing list