C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

__func__ or __FUNCTION__ being considered for the C++ standa

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards
View previous topic :: View next topic  
Author Message
Axter
Guest





PostPosted: Thu Dec 08, 2005 7:04 am    Post subject: __func__ or __FUNCTION__ being considered for the C++ standa Reply with quote



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





PostPosted: Fri Dec 09, 2005 4:07 pm    Post subject: Re: __func__ or __FUNCTION__ being considered for the C++ st Reply with quote



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





PostPosted: Sat Dec 10, 2005 4:57 am    Post subject: Re: __func__ or __FUNCTION__ being considered for the C++ st Reply with quote




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





PostPosted: Tue Dec 13, 2005 3:37 pm    Post subject: Re: __func__ or __FUNCTION__ being considered for the C++ st Reply with quote

Razzer wrote:
Quote:
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 ]


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.