fir <> writes:
> W dniu środa, 3 października 2012 23:07:47 UTC+2 użytkownik Keith Thompson napisał:
>> fir <> writes:
>> [...]
>> > The main benefit here is trashing out header files which i
>> > dislike.. (not to much will change but there should be a way to
>> > contain type definitions in .obj files etc)
>>
>> If you eliminate header files, you're making a radical change to the
>> C language, big enough that I wouldn't even call the new language
>> "C". It would break every non-trivial C program that's ever been
>> written. Even C++ didn't do that.
>>
>> If you add your "modules" feature to the language without eliminating
>> header files, than you have two separate mechanisms with overlapping
>> functionality, which will make learning the language that much
>> more difficult.
>>
>> You probably have some good ideas, but I don't think they can fit
>> into C. If you want to proceed with this, I suggest you invent
>> a new language. You can base it on C as much as you like, but I
>> advise against calling your new language "C". (The name "D" is
>> already taken; see <http://dlang.org/>. In fact, D may have some
>> of the features you like; for example, it uses `import std.stdio;`
>> rather than `#include <stdio.h>`.)
>>
>> I also advise you to gain a very strong understanding of C as it's
>> currently defined if you want to base a new language on it.
>>
>> [...]
>>
>> > void main()
>>
>> And in your own language, you can use "void main()" as much as you like.
>> In C, it's wrong. (That's not *quite* accurate, but it's close enough.)
Please take the time to clean up the extra blank lines that
Google Groups inserts so the rest of us don't have to. You can
copy-and-paste your article from the web form into a text editor, fix
it up, then copy-and-paste it back into the web form. (Or consider
using an interface other than the horribly broken Google Groups.)
I blame Google for this, but there are things Google user can do
to alleviate the damage.
> I wrote on this before many times in this messages tree
>
> 1. local linking i see as a fix to the present c - it will break no line
>
> 2. other improvements makes a distinct language I work on almost 10
> years (maybe not such many but I forgot when it had begun) I used to
> call it C2 as a 'codename'
Whatever you may have written many times before, I was responding
to one specific message, which proposed incompatible changes to C.
If you want to create a new language with such features, go ahead
(many others have done similar things). But comp.lang.c exists to
discuss C, not your new language.
> I Said here on about 4 improvements, some
> other I am thinking on are also:
[big snip]
None of which I was commenting on.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
Will write code for food.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"