[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
On Tue, 13 Jan 2004 14:00:24 +0100, John Mørck Hansen wrote: > Du kunne gøre noget ala: > > class myClass { > public: > myClass() { // Gør noget... sæt _stat } > bool isNull() { return _stat; } > bool operator () () { return _stat; } [...] > Så kan du senere bruge: > > myClass *foo = new myClass(); > if( !(*foo)() ) // bruger operator () [...] Hvorfor have både isNull() og operator(), der gør præcis det samme? -- Greetings from Troels Arvin, Copenhagen, Denmark
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |