lua-users home
lua-l archive

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


> lua.c has changed the prototype for main from/to
> 
> <! int main (int argc, char *argv[]) {  //5.0
> !> int main (int argc, char **argv) {   //5.1
> 
> I am curious. Can someone explain the pros/cons of these
> two. I have been using the 5.0 form for as long as I can remember.

As far as I know there is no difference at all. According to ISO,
the first format is converted to the second:

(ISO/IEC 9899:1999, 6.7.5.3)
   A declaration of a parameter as "array of type" shall be adjusted to
   "qualified pointer to type", [...]

-- Roberto