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 » Core: Null handling incoherent?
Re: Core: Null handling incoherent? [message #33812 is a reply to message #32255] Thu, 15 September 2011 12:57 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
kohait00 wrote on Wed, 04 May 2011 04:46

hi all,

i'm wondering why
template <class T> bool IsNull(const T& x) { return x.IsNullInstance(); }


and not
template <class T> bool IsNull(const T& x) { return x.IsNull(); }


is there a reason for it? name clashes??



Think about:

void Ctrl::TestSomething()
{
    String x = Something();
    if(IsNull(x)) ...
}


Mirek

[Updated on: Thu, 15 September 2011 12:57]

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
Previous Topic: [SOLVED] String.GetCount with umlaut
Next Topic: read/write to /dev/rtp is happening .. but a small problem
Goto Forum:
  


Current Time: Sun Jul 06 12:46:51 CEST 2025

Total time taken to generate the page: 0.03487 seconds