Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > overloading, template, exception handling and c

Reply
Thread Tools

overloading, template, exception handling and c

 
 
v4vijayakumar
Guest
Posts: n/a
 
      05-15-2006
Why there is no overloading (function and operator), function templates
and exception handling support in c? after all these are all useful
programming constructs.

What prevents ANSI/ISO committee to add these into c?

 
Reply With Quote
 
 
 
 
jacob navia
Guest
Posts: n/a
 
      05-15-2006
v4vijayakumar a écrit :
> Why there is no overloading (function and operator), function templates
> and exception handling support in c? after all these are all useful
> programming constructs.
>
> What prevents ANSI/ISO committee to add these into c?
>


Well, the lcc-win32 C compiler provides some of those.

See the document
ftp://ftp.cs.virginia.edu/pub/lcc-win32/proposal.pdf

for a detailed description
 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      05-15-2006
v4vijayakumar wrote:
> Why there is no overloading (function and operator), function templates
> and exception handling support in c? after all these are all useful
> programming constructs.
>
> What prevents ANSI/ISO committee to add these into c?
>

Because they can be found elsewhere, C++ for example. C does what it
does, if you want do do something else, use another tool.

--
Ian Collins.
 
Reply With Quote
 
v4vijayakumar
Guest
Posts: n/a
 
      05-15-2006
Ian Collins wrote:
> Because they can be found elsewhere, C++ for example. C does what it
> does, if you want do do something else, use another tool.


the question is "why these are not C yet?". IMHO, If C++ or any other
programming languages have these then it can not be a solution to C.

 
Reply With Quote
 
Ian Collins
Guest
Posts: n/a
 
      05-15-2006
v4vijayakumar wrote:
> Ian Collins wrote:
>
>>Because they can be found elsewhere, C++ for example. C does what it
>>does, if you want do do something else, use another tool.

>
>
> the question is "why these are not C yet?". IMHO, If C++ or any other
> programming languages have these then it can not be a solution to C.
>

The answer is why should they be in C?

This has been asked many times before, have a look though the group
archives.

--
Ian Collins.
 
Reply With Quote
 
Bill Pursell
Guest
Posts: n/a
 
      05-15-2006

Ian Collins wrote:
> v4vijayakumar wrote:
> > Ian Collins wrote:
> >
> >>Because they can be found elsewhere, C++ for example. C does what it
> >>does, if you want do do something else, use another tool.

> >
> >
> > the question is "why these are not C yet?". IMHO, If C++ or any other
> > programming languages have these then it can not be a solution to C.
> >

> The answer is why should they be in C?


I think a better answer is: "they aren't in C **yet** because
they never will be. The never will be because they don't belong."

It's like asking: "when will assembly have garbage collection?"
or "when will VHDL provide a tty interface?".

 
Reply With Quote
 
JesusWaffle@gmail.com
Guest
Posts: n/a
 
      05-15-2006
C is, at heart, a systems programming language. It has to be able to
run without a runtime environment, and often on very small computers.
Adding such features would reduce the usefulness of the language for
many important purposes.

 
Reply With Quote
 
Flash Gordon
Guest
Posts: n/a
 
      05-15-2006
wrote:

Please provide context when replying. See the Google section at
http://clc-wiki.net/wiki/Intro_to_clc

> C is, at heart, a systems programming language. It has to be able to
> run without a runtime environment,


That will be why it has a library defined by the standard then, so that
there is no run time support...

> and often on very small computers.
> Adding such features would reduce the usefulness of the language for
> many important purposes.


Possibly. A bigger reason in my opinion is that there are already
languages with those things, so why turn C in to one?
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
 
Reply With Quote
 
Default User
Guest
Posts: n/a
 
      05-15-2006
wrote:

> C is, at heart, a systems programming language. It has to be able to
> run without a runtime environment, and often on very small computers.
> Adding such features would reduce the usefulness of the language for
> many important purposes.


What features? Please read the information below.



Brian
--
Please quote enough of the previous message for context. To do so from
Google, click "show options" and use the Reply shown in the expanded
header.
 
Reply With Quote
 
CBFalconer
Guest
Posts: n/a
 
      05-15-2006
"" wrote:
>
> C is, at heart, a systems programming language. It has to be able to
> run without a runtime environment, and often on very small computers.
> Adding such features would reduce the usefulness of the language for
> many important purposes.


What features?

In general on usenet you should realize that readers may very well
not have convenient access to previous articles in a thread. That
means that your reply articles should include adequate context, so
that they stand by themselves. Google is NOT usenet, it is only a
very poor interface to the real usenet system. To include proper
context when using google, see my sig. below. Please be sure to
read the referenced URLs.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
signal handling and (structured) exception handling Peter C++ 34 10-17-2009 10:03 AM
Exception of type 'System.Web.HttpUnhandledException' wasthrown.Exception has been thrown by the target of an invocation.System.WebSystem.Exception jobs ASP .Net 1 11-16-2007 05:57 PM
while executing my client program i get the exception javax.naming.LinkException: [Root exception is javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: remaining if plz anybody know how to solve this problem then mahesh Java 0 03-08-2007 12:26 PM
How do I add exception-handling to this code and make sure it compiles and runs properly? robinsand@gmail.com C++ 4 06-20-2006 09:13 PM
SoapExtension for Global Exception handling; but prevent exception from propagating!! VSK ASP .Net Web Services 0 07-29-2003 05:39 PM



Advertisments