[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 14:33:32
Message-ID: 200402161433.32791.kde () metafoo ! co ! uk
[Download RAW message or body]

On Monday 16 February 2004 1:55 pm, Dirk Mueller wrote:
> On Monday 16 February 2004 14:21, Thiago Macieira wrote:
> > However, if you add  "static" to the namespace above, the symbol won't
> > be exported, which is impossible with a class.
>
> As a proof, try to compile your example. It  does not compile (nor work).

Maybe your compiler is broken. Works fine here.

> > PS: if anyone is wondering, the symbol mangling is different for the two
> > functions above, at least with g++.
>
> hardly a surprise, or where should the this-pointer come from in a
> namespace ?

There's no this pointer in a static member of a class.

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

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