From kde-core-devel Mon Feb 16 15:01:07 2004 From: Richard Smith Date: Mon, 16 Feb 2004 15:01:07 +0000 To: kde-core-devel Subject: Re: Static functions Message-Id: <200402161501.07640.kde () metafoo ! co ! uk> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=107694361607973 On Monday 16 February 2004 2:50 pm, Dirk Mueller wrote: > On Monday 16 February 2004 15:33, Richard Smith wrote: > > > As a proof, try to compile your example. It does not compile (nor > > > work). > > > > Maybe your compiler is broken. Works fine here. > > so your compiler can compile this? I hit it with this: namespace MyFunctions { static void function(); } void foo() { MyFunctions::function(); } void MyFunctions::function() {} int main() { return 0; } Compiled, linked, and ran. > let me see it. It's called g++ 3.2.3. I wouldn't be surprised if you can see it in your own box. Richard