Syntax error question (Adding ')' to loop)
Jeremy Cowgar
jeremy at cowgar.com
Fri Aug 22 12:24:47 UTC 2008
Quoting Xavier Oswald <x.oswald at free.fr>:
> On 08:07 Fri 22 Aug , Jeremy Cowgar wrote:
> > Good morning,
> >
> > I am having a slight problem figuring out this loop. I think I am doing it
> > correct, but Lisaac does not think so, and I'm sure it's right but I cannot
> > figure out what it wants.
> >
> > - min args:ARRAY[NUMERIC] :NUMERIC <-
> > (
> > + least:NUMERIC;
> > least := UINTEGER_64.maximum;
> >
> > args.lower.to args.count do { i:INTEGER;
> > ( args.item i < least ).if { least := args.item i; }
> > };
> >
> > least
> > );
> >
> > The error I am getting is:
> >
> > Added ')'.
> > ..... args.lower.to args.count do { i:INTEGER;
> >
> > The ^ is under { in that line. I then get the same errors for the
> > same { as Added ';' and then finally Incorrect symbol.
> >
> > Any thoughts?
>
> don't forget ';' at the end of
>
> ( args.item i < least ).if { least := args.item i; };
>
Well, I appologize. I was having problems pasting my code into the email as I
am working over SSH and a console right now. I typed the above code in from
my source. In my source, I do have the ; following the if. That way a typo in
the email.
Jeremy
More information about the Lisaac-devel
mailing list