[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Extending Lua for multiple light userdata types
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 13 Nov 2012 22:24:07 -0200
> Very good idea, but, shouldn't this can be a sub type just like short
> string and long string?
Yes, it is a subtype; but, as I said, it is visible to the programmer.
> some doubt, why integer overflow just like unsigned in C? does
> negative integer exists?
Sure. What I meant is that overflows simply throws away the carry. (C
does not specify the behavior of overflows for signed integers.)