[Top][All Lists]

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

[gfsd]errno macro is not compatible with c++

From: Georg Maaß
Subject: [gfsd]errno macro is not compatible with c++
Date: Mon, 18 Jun 2001 18:59:35 +0200
User-agent: Mozilla/5.0 (X11; U; Linux 2.2.13 i686; en-US; rv:0.9) Gecko/20010505

C macros are not compatible with equal named member functions or member
properties of c++ classes.

If I spend a errno property or method to a class there is no more
distinction between the member property and the macro, because I can't
use a scope operator for the macro. Instead of macros I would prefer
variables and methods bound to a namespace like error. This would give
me the ability to access the error information provided by some C func-
tions also inside classes, that define there own equal named property to
store that retrived information.

If your provide the errno as a pre defined global variable instead of a
macro, the g++ developers get a chance to wrap a namespace around it.

Greetings, georg
Georg Maaß -            D-20535 Hamburg, Sievekingsallee 35
JavaScript  Engineering

  - The ultimative DHTML engine: -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]