Home » U++ Library support » U++ Core » What happened to long ints?
Re: What happened to long ints? [message #1719 is a reply to message #1718] |
Wed, 15 March 2006 18:52   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
tercero12 wrote on Wed, 15 March 2006 12:19 | I have been using upp for a few weeks now for a school project. (Namely, to emulate a simple RISC processor in software at the register level.)
I quickly found out that upp sort of ignored implementing long ints when it implemented conversion functions and Values. In the mean time I wrote my own conversion functions but it would be supernice to have have to wrap every long I use in order to pass it to a function that takes a Value.
Am I missing something? Can a Value support a long? If I were to implement this functionality into UPP, would my code be accepted?
|
Well, it is true that number of fundamental types that can be directly stored into Value is deliberately limited to bool, int, double and int64.
In practice, however, the question is why do you need to store long int? If you just want to store 32-bit value, use "int" (typecast if you source contains long). In U++ int is required to have at least 32 bits. If you need 64, use int64.
Mirek
|
|
|
Goto Forum:
Current Time: Mon Aug 25 21:05:09 CEST 2025
Total time taken to generate the page: 0.06720 seconds
|