lua-users home
lua-l archive

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


2014-10-26 21:04 GMT+02:00 Dirk Laurie <dirk.laurie@gmail.com>:
> 2014-10-26 20:58 GMT+02:00 Dirk Laurie <dirk.laurie@gmail.com>:
>> 2014-10-26 20:37 GMT+02:00 Tom N Harris <telliamed@whoopdedo.org>:
>>
>>> So there is no debug.sizeof, then?
>>
>> Roberto's first post on this thread said:
>>>> * 'debug.Csize' removed (subsumed by 'string.pack')
>>
>> I.e. #string.pack(item) gives the size in bytes of the item.
>
> Scratch that. I posted and only tried it later. Doesn't work.
>
> Which means that at this moment I don't know why string.pack
> subsumes debug.Csize.

Just referred back to the 5.3.0 alpha manual, and got it.

E.g.:> return #string.pack("T",0)
8
> return #string.pack("j",0)
8
> return #string.pack("J",0)
8
> return #string.pack("h",0)