On 2010-11-13, BartC <> wrote:
> "sandeep" <> wrote in message
> news:ibmurn$5fi$...
>> Sometimes I imagine that you and Mr Sosmanji just look for reasons to
>> oppose my suggestions...
FWIW, sandeep, I have not yet seen a suggestion from you that one would
have to *look* for reasons to oppose. In this case, the reasons to
oppose it have broken into the FBI's computers so they can look up our
home and work addresses and send us threatening letters. Also, they
are breaking into our offices and photocopying their body parts. We are
not looking for them; they are looking for us.
>> But the true point is that if the problem is not being able to pass type
>> names to functions, but being able to pass them to macros, why not
>> improve the language to allow *all* functions (both implementation and
>> user functions) to accept type names as arguments?
> You want to totally reinvent the language into something quite different,
> just so some built-in macros can be functions instead? (And after that you
> will presumably ask why statements cannot also be implemented as functions.)
To make that work at runtime, runtime code would have to have access to
the entire type system, when the entire POINT of a statically typed
compiled language is to GET AWAY FROM THAT.
If you want dynamic typing, you are probably not looking for C.
> I don't see how it would help. Any 'type arguments' you see in templates
> aren't runtime values.
Well, that's the thing. They'd have to be, meaning that C would have
turned into a fully dynamic runtime language. Which is, well.
I love languages like that. I program in several of them. They're not C.
> With getc(), that is easy enough to arrange without turning the entire
> language upside-down.
Yes.
-s
--
Copyright 2010, all wrongs reversed. Peter Seebach /
usenet-
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.