[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Static functions
From:       Richard Smith <kde () metafoo ! co ! uk>
Date:       2004-02-16 15:01:07
Message-ID: 200402161501.07640.kde () metafoo ! co ! uk
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic