Talk:Null object: Difference between revisions

m
added a section header to the 1st topic so that the table of contents (TOC) is in the correct place.
m (added a section header to the 1st topic so that the table of contents (TOC) is in the correct place.)
 
(One intermediate revision by one other user not shown)
Line 1:
== '''C'''   and   '''C+'''   languages ==
The C anc C++ examples don't really fit the task description (and it's not possible to do so, because C and C++ don't know a generic null object). What you can have is a null ''pointer'', which is a pointer which doesn't point to any object (and that is indeed what <code>NULL</code> is for). The closest to a null object in C++ would be an empty <code>boost::optional</code> from the boost library.
 
Line 42 ⟶ 43:
 
This task almost demands a reference to Shakespeare's [[wp:Much_Ado_About_Nothing|Much Ado About Nothing]]. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 04:44, 16 April 2014 (UTC)
 
== Delphi vs. Pascal ==
 
The entries of [[Delphi]] and [[Pascal]] in this article should be exchanged, since Pascal is the language, Delphi is one implementation, (one among others)
And since the null-object is no Delphi-specific feature.