lua-users home
lua-l archive

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



> -----Original Message-----
> From: Eero Pajarre [mailto:epajarre@koti.tpo.fi]
> Sent: Friday, March 07, 2003 11:57 AM
> To: Multiple recipients of list
> Subject: Re: Lua 5.0 beta/loadmodule question
> 

[skipped]

> I am pretty sure that sizeof(tbl)/sizeof(tbl[0]) is a safe 
> C/C++ idiom.
> C/C++ arrays don't contain "gaps", if padding is needed it is already
> inside the structs.

This padding, however, may differ from module to module resulting in all sorts of trouble when passed around carelessly. Though it remains to be seen whether the problems reported by original poster relate in any way to data alignment. 

[skipped]
 
> 
> 		Eero

Alex