If you declare variable as integer in Gambas and pass it as unsigned 32bit
variable to lib made with C, then I don't think the lib will notice any
difference. It's just that Gambas will show large values of that variable
as negative numbers.
Jussi
On Wed, Jan 22, 2014 at 3:19 PM, wally wrote:
Hello
@Jussi,
i must handle a lot of 4byte uint32_t values which represents
node IP addresses of devices in a rs232 ring network.
I know i might use long instead of unsigned 4byte integer,
but i expected there is a keyword "unsigned" somewhere to
declare as needed.
The "long" approach for uint32_
Le 22/01/2014 10:15, wally a écrit :
> Hello,
>
> Where can i find information and example code on:
>
> How to declare and handle *_unsigned_*__Integer, Short, Long in Gambas3 ?
>
> thank you wally
>
Alas you have no unsigned datatypes in Gambas. Maybe in a future Gambas 4?
You have to use signed
Instead of unsigned integer and short, why not just normal signed long? It
can hold same values. Integer is variable of 32 bits and it's declaration
determines how the first bit is interpreted. So in some cases it doesn't
matter.
Where do you need these exactly?
Jussi
On Wed, Jan 22, 2014 at 11:
Hello,
Where can i find information and example code on:
How to declare and handle *_unsigned_*__Integer, Short, Long in Gambas3 ?
thank you wally
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why