[ic] "nested elsif problem" still exists in 5.0

Grant emailgrant123b at yahoo.com
Thu Mar 11 20:38:29 EST 2004


--- Mike Heins <mike at perusion.com> wrote:
> 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

Alright, thanks Mike and Kevin for the info and Jon
for the fix.

- Grant

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com


More information about the interchange-users mailing list