Topic: __func__ or __FUNCTION__ being considered for the C++ standard?
Author: "Axter" <google@axter.com>
Date: Tue, 13 Dec 2005 09:37:19 CST Raw View
Razzer wrote:
> Axter wrote:
> > Does anyone know if either __func__ or __FUNCTION__ is being considered
> > for the C++ standard?
>
> There was this paper in 2004:
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1642.html
>
> I cannot remember if it was ever really considered.
Great link. I was wondering what was the difference between the
__func__ and __FUNCTION__ implementation.
I can see __func__ being a little difficult to implement for compilers,
but __FUNCTION__ should be a no brainer, and I can not see why it would
be a problem to add it to the standard.
What's the best way to advocate this issue, so as to get more attention
on it?
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: "Axter" <google@axter.com>
Date: Thu, 8 Dec 2005 01:04:30 CST Raw View
Are the C99 C macro's being considered for the C++ standard?
The C99 standard has a __func__ macro.
Actually, it calls it a Predefined identifier.
And I notice that both VC++ 7.x and GNU 3.x have a __FUNCTION__ macro.
I would like to see this in the C++ standard, because it's very useful
for debugging code.
It makes it much easier to create logging for debug and release version
of the code.
Does anyone know if either __func__ or __FUNCTION__ is being considered
for the C++ standard?
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: "vish" <vishakha@gmail.com>
Date: Fri, 9 Dec 2005 10:07:11 CST Raw View
I dont see it mentioned in the Oct 2005 draft, not in the active issues
list. However, I remember reading some dicussions on gcc@gcc.gnu.org
that __func__ does not return scope or type information, is that the
reason why its not been considered for the standard. Does anyone know
the exact reason ?
-Vish
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: "Razzer" <coolmandan@gmail.com>
Date: Fri, 9 Dec 2005 22:57:42 CST Raw View
Axter wrote:
> Does anyone know if either __func__ or __FUNCTION__ is being considered
> for the C++ standard?
There was this paper in 2004:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1642.html
I cannot remember if it was ever really considered.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]