[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlopen question...



On Wednesday 04 June 2003 22:00, Martin Preuss wrote:
> Hi,
>
> Am Mittwoch, 4. Juni 2003 21:44 schrieb Sigfred Håversen:
> > On Wednesday 04 June 2003 21:28, Martin Preuss wrote:
>
> [...]
>
> > Some names (at least in C++) with a certain prefix is reserved for
> > implementors of libraries/compilers. A __ is such a prefix, and as
> > far as I know, a single _ is pretty much the same. Using your own
> > names with those kind of prefxies is asking for trouble. Macroes
> > don't respect scope.
>
> What would you suggest ? I am not quite happy with the underscore
> solution, but it at least allows me to dlopen libraries and resolve
> syms on OpenBSD 3.2 (to other subscribers: which in my case, yes, it
> IS a.out, I admit it, so please stop flaming ;-)
>
> regards
> Martin

It was not my intention to flame at all, and I apologize if it came 
across like that. 

In a previous job my programming chief had a coding convention for 
member variables : they had a postfix _ So I asked, why not in front of 
the name like in the book "Design Patterns". Answer : It'll give you no 
ends of problems. As I found out later, he was right ;-)

/Sigfred