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 » Value: why not float support?
Re: Value: why not float support? [message #30315 is a reply to message #30259] Fri, 24 December 2010 12:39 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
kohait00 wrote on Tue, 21 December 2010 02:20


and one more: design aspects for extension of upp should not only be concerned about not making code possibly bricked (this can be fixed) but also to think about 'what would be the logical, right and most usefull and most performant way'..

so, please, consider float again Smile



I am still considering it. I even added value type testers already.

Anyway, to demonstrate a few things, this code would break immediately with float Value type:

float x;
SQL.Execute("select FOO from BAR where VALUE > ?", x);


which sounds quite dangerous to me. Plus we would have to define a new Null constant etc...

Perhaps it would help me if I understood what you do plan to do with it. Frankly, to depend only on Value type to induce call signature seems like a little bit dangerous practice to me... To easy to make things go very very bad.

[Updated on: Fri, 24 December 2010 12:40]

Report message to a moderator

 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Core/Path.cpp: the limitation of GetCurrentDirectory for POSIX
Next Topic: InitCaps() proposal
Goto Forum:
  


Current Time: Tue Jun 11 16:30:42 CEST 2024

Total time taken to generate the page: 0.02199 seconds