Static functions

Thiago Macieira thiago.macieira at kdemail.net
Mon Feb 16 14:55:58 GMT 2004


Dirk Mueller wrote:
>so your compiler can compile this?

Sure:

$ cat /tmp/test.cpp
namespace MyFunctions
{
  static void function();
}

void testit( )
{
    MyFunctions::function();
}

void MyFunctions::function()
{
}

$ g++ -c -o /tmp/test.o /tmp/test.cpp; echo $?
0

-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiago (AT) macieira (DOT) info
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040216/1c4e7ad9/attachment.sig>


More information about the kde-core-devel mailing list