 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Axter Guest
|
Posted: Thu Dec 08, 2005 7:04 am Post subject: __func__ or __FUNCTION__ being considered for the C++ standa |
|
|
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 ]
|
|
| Back to top |
|
 |
vish Guest
|
Posted: Fri Dec 09, 2005 4:07 pm Post subject: Re: __func__ or __FUNCTION__ being considered for the C++ st |
|
|
I dont see it mentioned in the Oct 2005 draft, not in the active issues
list. However, I remember reading some dicussions on [email]gcc (AT) gcc (DOT) gnu.org[/email]
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 ]
|
|
| Back to top |
|
 |
Razzer Guest
|
Posted: Sat Dec 10, 2005 4:57 am Post subject: Re: __func__ or __FUNCTION__ being considered for the C++ st |
|
|
Axter wrote:
| Quote: | 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 ]
|
|
| Back to top |
|
 |
Axter Guest
|
Posted: Tue Dec 13, 2005 3:37 pm Post subject: Re: __func__ or __FUNCTION__ being considered for the C++ st |
|
|
Razzer wrote:
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 ]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|