Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » FIX: UPP::Scan returns int64 for INT_V
Re: FIX: UPP::Scan returns int64 for INT_V [message #32190 is a reply to message #32142] Fri, 29 April 2011 20:17 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14256
Registered: November 2005
Ultimate Member
kohait00 wrote on Wed, 27 April 2011 08:07

i still can't figure out where ConvertInt comes into play here with Sql..

i understand that operator[]() returns a Value, which content is determined at runtime. is it using a ConvertInt?
(have to admit i haven't used Sql in Upp yet).



No. The example was to demontrate that you should never (or almost never) depend on particular number type in Value.

Use IsNumber, then assign.

Quote:


anyway, the question is, what purpose does the ConvertInt serve to.. to convert stuff to a Value with an int inside.



It already has 'int' inside... (stored in lower 32-bits of int64 Smile. Frankly, it is not quite unlikely that at some point in future, we completely abandon INT_V and will only store int64 in Value.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Rect_<T>::SetNull not correct for Rectf (Rect_<double>)
Next Topic: Ptr improve
Goto Forum:
  


Current Time: Tue Apr 29 23:36:09 CEST 2025

Total time taken to generate the page: 0.00740 seconds