[ic] "nested elsif problem" still exists in 5.0
Mike Heins
mike at perusion.com
Thu Mar 11 20:20:01 EST 2004
Quoting Grant (emailgrant123b at yahoo.com):
>
> --- Kevin Walsh <kevin at cursor.biz> wrote:
> > > I submitted a description of a bug I had noticed
> > in
> > > 4.9.3 involving nested elsifs which I think I
> > remember
> > > Ed LaFrance verifying at the time. The WHATSNEW
> > file lists:
> > >
> > > * Fix nested [elsif] problem.
> > >
> > > under the 4.9.9 section, but I have just upgraded
> > to
> > > 5.0 and the bug still exists. It can be
> > demonstrated this way:
> > >
> > > [tmp test]2[/tmp]
> > > [if scratch test == 1]
> > > INCORRECT
> > > [elsif scratch test == 2]
> > > [if test == 1]
> > > INCORRECT
> > > [elsif test == 2]
> > > CORRECT
> > > [/elsif]
> > > [/if]
> > > [/elsif]
> > > [/if]
> > >
> > > That code should return "CORRECT", but instead
> > returns "INCORRECT".
> > >
> > [if test == 1]
> > ^^^
> > You're missing a scratch there.
>
> Sorry about that. After fixing that, it started working properly.
> After a lot of testing I narrowed the problem down to named
> parameters. The above code works properly (once fixed as Kevin pointed
> out), but no longer works properly when named parameters are used.
>
That bug was recently fixed by Jon Jensen in 5.1.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike at perusion.com>
Fast, reliable, cheap. Pick two and we'll talk. -- unknown
More information about the interchange-users
mailing list