lua-users home
lua-l archive

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




On Wed, May 13, 2020 at 7:21 AM Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> 'offsetof' would be better. And gcc allows 'char bytes[0];' or 'char bytes[];' .
>
> It's C99 standard, but MSVC doesn't support it :(

It is not C89. As much as feasible, we try to stick to C89 (because
of MSVC and other strange platforms).

It's also not valid C++, although g++ accepts it (it issues a warning with the "-pedantic" flag set).

So, a very standards-compliant C++ compiler would rightly choke on this.

--

_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org