Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: [OT] Genera...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 22 of 34 Topic 25030 of 28234
Post > Topic >>

Re: [OT] General purpose Expression Parser

by Ioannis Vranos <ivranos@[EMAIL PROTECTED] > Mar 21, 2008 at 06:24 PM

Richard Heathfield wrote:
> Ioannis Vranos said:
>> Ben Pfaff wrote:
>>> Ioannis Vranos <ivranos@[EMAIL PROTECTED]
> writes:
>>>
>>>> I think template functions and structs could be introduced in
>>>> C.
>>> You can already use them in C++.  There is no need for them in C.
>> So, whatever we can use in C++ needs not be provided in C. In other
>> words you are saying that C is obsolete.
> 
> CUSTOMER: "I'd like a knife and fork, please."
> WAITER: "Here you are, sir."
> CUSTOMER: "Wait a moment - this fork has no sharp edge."
> WAITER: "That's right."
> CUSTOMER: "But this knife has a lovely edge on it. Why can't the fork be

> like that?"
> WAITER: "Because it's a fork."
> CUSTOMER: "This knife has serrations along the blade to improve its grip

> during the cut. Why can't the fork have serrations?"
> WAITER: "Because it's a fork. If you want to cut, use the knife."
> CUSTOMER: "So what you're saying is that the fork is useless? I don't
need 
> it?"
> WAITER: "No, what I'm saying is that I don't get paid enough to deal
with 
> people like you."


This fictional conversation has nothing to do with the value of 
function/struct templates in terms of *elegance (simplicity)*, 
*efficiency*, *type safety* as a newer and better tool, replacing 
generic functions currently implemented with void * and conditions, and 
macros.


As an example of C++ features adoption, consider function-prototypes 
adopted and provided in C89 as well as other features I do not remember
now.
 




 34 Posts in Topic:
General purpose Expression Parser
Dexter <yousaf.asad@[E  2008-03-20 14:34:14 
Re: [OT] General purpose Expression Parser
Ioannis Vranos <ivrano  2008-03-20 23:48:35 
Re: [OT] General purpose Expression Parser
Ian Collins <ian-news@  2008-03-21 11:40:01 
Re: [OT] General purpose Expression Parser
Ioannis Vranos <ivrano  2008-03-21 01:11:42 
Re: [OT] General purpose Expression Parser
Ben Pfaff <blp@[EMAIL   2008-03-20 16:26:00 
Re: [OT] General purpose Expression Parser
Ioannis Vranos <ivrano  2008-03-21 02:19:39 
Re: [OT] General purpose Expression Parser
Ian Collins <ian-news@  2008-03-21 13:27:17 
Re: [OT] General purpose Expression Parser
Ioannis Vranos <ivrano  2008-03-21 04:31:02 
Re: [OT] General purpose Expression Parser
CBFalconer <cbfalconer  2008-03-20 22:46:07 
Re: [OT] General purpose Expression Parser
santosh <santosh.k83@[  2008-03-21 09:50:28 
Re: [OT] General purpose Expression Parser
Ioannis Vranos <ivrano  2008-03-21 16:54:29 
Re: [OT] General purpose Expression Parser
jacob navia <jacob@[EM  2008-03-21 15:55:42 
Re: [OT] General purpose Expression Parser
richard@[EMAIL PROTECTED]  2008-03-21 00:32:59 
Re: [OT] General purpose Expression Parser
CBFalconer <cbfalconer  2008-03-20 22:42:16 
Re: [OT] General purpose Expression Parser
Ian Collins <ian-news@  2008-03-21 19:34:28 
Re: [OT] General purpose Expression Parser
Richard Heathfield <rj  2008-03-21 06:51:11 
Re: [OT] General purpose Expression Parser
Ian Collins <ian-news@  2008-03-21 19:57:13 
Re: [OT] General purpose Expression Parser
CBFalconer <cbfalconer  2008-03-21 09:49:26 
Re: [OT] General purpose Expression Parser
Richard Heathfield <rj  2008-03-21 06:22:09 
Re: [OT] General purpose Expression Parser
"Chris Thomasson&quo  2008-03-21 06:22:34 
Re: [OT] General purpose Expression Parser
Joe Wright <joewwright  2008-03-21 11:38:28 
Re: [OT] General purpose Expression Parser
Ioannis Vranos <ivrano  2008-03-21 18:24:26 
Re: [OT] General purpose Expression Parser
CBFalconer <cbfalconer  2008-03-21 11:49:15 
Re: [OT] General purpose Expression Parser
santosh <santosh.k83@[  2008-03-22 00:15:26 
Re: [OT] General purpose Expression Parser
gazelle@[EMAIL PROTECTED]  2008-03-22 02:08:08 
Re: [OT] General purpose Expression Parser
Jean-Marc Bourguet <jm  2008-03-21 09:30:07 
Re: [OT] General purpose Expression Parser
Morris Dovey <mrdovey@  2008-03-21 13:50:34 
Re: General purpose Expression Parser
Anand Hariharan <mailt  2008-03-21 11:10:56 
Re: General purpose Expression Parser
user923005 <dcorbit@[E  2008-03-21 11:48:27 
Re: General purpose Expression Parser
Ioannis Vranos <ivrano  2008-03-22 01:19:16 
Re: General purpose Expression Parser
Ian Collins <ian-news@  2008-03-22 12:32:25 
Re: General purpose Expression Parser
jacob navia <jacob@[EM  2008-03-22 00:53:51 
Re: General purpose Expression Parser
Ian Collins <ian-news@  2008-03-22 13:01:43 
Re: General purpose Expression Parser
jacob navia <jacob@[EM  2008-03-22 01:15:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 15:10:04 CST 2008.