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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Value improvements...
Value improvements... [message #4180] Thu, 27 July 2006 19:07 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
- Instead of external function IsType you can now use method Is:

Value v = 1;
v.Is<int>(); -> true

- Value now supports direct equality comparisons for standard types (and all types that implement it; non-poly-equal rich types have had that without further support already).

Means now you can write

v == 1;

instead (still possible)

(int)v == 1;

Note that this second feature should be considered experimental, heavy C++ overloading is convenient but sometimes tricky...

Mirek
icon14.gif  Re: Value improvements... [message #4183 is a reply to message #4180] Thu, 27 July 2006 21:30 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

luzr wrote on Thu, 27 July 2006 13:07


Means now you can write
v == 1;



Awesome! Very Happy
Previous Topic: SQL updates...
Next Topic: Small SqlCtrls improvement
Goto Forum:
  


Current Time: Tue Apr 30 06:01:53 CEST 2024

Total time taken to generate the page: 0.61351 seconds