bug-glibc
[Top][All Lists]
Advanced

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

errno macro is not compatible with equal named c++ members


From: Georg Maaß
Subject: errno macro is not compatible with equal named c++ members
Date: Mon, 18 Jun 2001 19:20:05 +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 predefined global variable instead of a
macro, the g++ developers get a chance to wrap a namespace around it.

Greetings, Georg

--
Georg Maaß - bioshop.de            D-20535 Hamburg, Sievekingsallee 35
JavaScript  Engineering

  - The ultimative DHTML engine: http://gml-modul.sourceforge.net -




reply via email to

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