lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

>From Wed Sep  1 17:49:28 1999
>From: Supratik Champati <>

>The reason is that initially ls->fs->f->consts is NULL.
>The call checkname(ls) in turn calls next_constant()
>which grows the array.

I think you're right. :-(
checkname(ls) changes ls->fs->f->consts and so the expression
is undefined because of this side-effect.

It seems that all C compilers we tested (and everybody else!) only get
the value of ls->fs->f->consts *after* checkname returns.
Your compiler in HPUX (which is it?) seems to get the value of ls->fs->f->consts
*before* calling checkname, which I think it can, according to ANSI C rules.

We'll look into it and fix it if it's really wrong.