lua-users home
lua-l archive

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


> However if you want to pass the strings to C to be used directly then
> there are alignment issues.

Yes; Lua gives no garanties about alignment of its strings (except that
they are valid for strings ;-).


> I started implementing Perl-style pack/unpack functions [...]

Wouldn't you have to handle alignment details anyway? For instance, if
you pack with format "cf", the floating point will not be aligned.

-- Roberto