Talk:C (programming language)/Archive 16
![]() | This is an archive of past discussions about C (programming language). Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 10 | ← | Archive 14 | Archive 15 | Archive 16 | Archive 17 |
Semi-protected edit request on 24 October 2015
![]() | This edit request to C (programming language) has been answered. Set the |answered= parameter to no to reactivate your request. |
About the "Typing discipline", The weak typing is not a precise definition. So, please remove it. 36.229.47.121 (talk) 12:04, 24 October 2015 (UTC)
- That typing is not enforced, is a significant characteristic of the language, so I think it should be mentioned but maybe its the term you're objecting to. It makes sense to me. See Strong and weak typing. What makes you think it's not a precise definition? How would you word it? The Dissident Aggressor 14:46, 24 October 2015 (UTC)
- (ec) It is, however, how the language is commonly described. Also, what would you suggest as the alternative - type safety is a spectrum, and C falls on the "less strict" end of that spectrum, but calling it generically "not type safe", while having a more precise definition, seems less helpful. Rwessel (talk) 15:25, 24 October 2015 (UTC)
- And I don't think this article is protected (semi, or otherwise). Rwessel (talk) 15:27, 24 October 2015 (UTC)
External link "A History of C, by Dennis Richie, archived from the original on February 2, 2004" is dead
The content of the external link "A History of C, by Dennis Richie, archived from the original on February 2, 2004" is unavailable. — Preceding unsigned comment added by Vitor.Alcantara.de.Almeida (talk • contribs) 13:10, 4 December 2015 (UTC)
- Fixed. Thanks! - Richfife (talk) 16:57, 4 December 2015 (UTC)
Inconsistency regarding relationship with ALGOL
From the Data Types section:
The type system in C is static and weakly typed, which makes it similar to the type system of ALGOL descendants such as Pascal, although C is unrelated to ALGOL.[28]
The assertion that C is unrelated to ALGOL is incorrect in a number of ways, and there are cited mentions of ALGOL's influence on C elsewhere. I would recommend phrasing something like this:
The type system in C is static and weakly typed, which makes it similar to the type system of ALGOL and its descendants such as Pascal.
I checked the citation, and it supports the assertions made about the type system but not the assertion that C is unrelated to ALGOL. It does mention that C is related to B and BCPL; in fact BCPL is a subset of CPL, which was more or less an extension of Algol.
98.202.130.141 (talk) 11:12, 6 January 2016 (UTC)
- I agree. I've gone ahead and made the change. Rwessel (talk) 20:03, 6 January 2016 (UTC)
C language
C is the programming language ,which is the base of c++,JAVA , and other opp programming language . C cant create a program it is only for a knowledge Wjrbvek (talk) 11:24, 2 April 2016 (UTC)
- @Wjrbvek: Sorry, that's pretty incomprehensible. Are you suggesting a change in the article? Rwessel (talk) 23:53, 2 April 2016 (UTC)
Semi-protected edit request on 1 April 2017
![]() | This edit request to C (programming language) has been answered. Set the |answered= parameter to no to reactivate your request. |
In the ANSI C and ISO C section, here is a reference to the Normative Amendment 1: https://www.lysator.liu.se/c/na1.html Lovelace42 (talk) 23:08, 1 April 2017 (UTC)
Not done: According to the page's protection level you should be able to edit the page yourself. If you seem to be unable to, please reopen the request with further details. 80.221.152.17 (talk) 21:06, 5 April 2017 (UTC)
Nonsense in this article
This article says:
"Nearly a superset of C, C++ now supports most of C, with a few exceptions."
Guys, what kind of bu.llcr.ap is this? This statement suggests the compatibility improves over time and that it is a design goal of C++.
This may have been historically true, but now the ways of both languages part more and more nowadays! A non-exhaustive list of features of C introduced in C11 or even C99 deliberately not supported by C++: • struct initialization with designators, • restrict type qualifier, • bounds-checked functions, • thread support (C++11 added threading support, but with a different API!), • VLAs, etc, etc!
Also see this thread in the ISO C++ Standard - Discussion mailing list to see how very wrong you were.
Fix this article!, Okay? — Preceding unsigned comment added by 89.77.194.225 (talk) 16:14, 23 May 2017 (UTC)
Some comments
I have decided to use this page (and no other) for advice (in or out..). I have removed a message from my talk-page, and since the user is more Wikipedia-experienced, compared to my initial thought's , do I suggest he do the same at his talk-page. Nothing fruitful to find there, I conclude.
I'm please to see the constructive will that has emerged here, regarding the design of the C-language. One minor objection about the headerfiles. These are found in in the (API), which is a part of the standard library - but the non-prepared headerfiles are usually stored elsewhere. (No software company, want's to "discover the wheel" again, time after time - and do often build up headerfiles of their own - and they may also purchase and sell headerfiles, as well. Non originally included hearderfiles becomes usually not located together with the included ones, and becomes (if so) included like below:
"#include "c:\pathway\own_headers\own_string_header.h" " (quotation marks just used once - # becomes a number)
But the can also be located in normal the "Application Programming Interface", if this is found necessary or suitable. And can if that's the case be included "normally"
"#include <own_string_header.h> " (without any quotation marks, here only due to # )
Also edit of headerfiles can be done, but that topic is perhaps outside the article's scope.
Here is , just by the way , the file I used originally https://sv.wikipedia.org/w/index.php?title=C_(programspr%C3%A5k)&action=edit§ion=32 Boeing720 (talk) 07:43, 8 July 2017 (UTC)
The KR&C example
Shouldn't (at least a code.c meant for C-compilation rather than c++ compilation - if it matters at all)
- register /* int */ test2;
- be
- register int test2; ?
- Just "register, auto, volatile" etc calls for a type following !??
- I'm a bit confused here, without any c-compiler at hand
Boeing720 (talk) 12:51, 9 July 2017 (UTC)
Recent edits
Any suggestions on what should be done with the recent changes to C (programming language)#Design? The text on keywords needs to be removed as it duplicates C (programming language)#Reserved words and uses language that is too informal. The text about functions and subroutines is not needed. The wording about math.h, for example, needs to be omitted or fixed so as to not give the impression that math.h provides the functions (in fact, the functions can be used without any mention of math.h). The text about building a collection of functions is again too informal, and is misleading regarding header files. Is any of the new text needed? Johnuniq (talk) 04:44, 19 July 2017 (UTC)
- I've made a (dramatic) change to the section that I think addresses your concerns. Power~enwiki (talk) 05:00, 19 July 2017 (UTC)
- Johnuniq and Power~enwiki: Thank you guys. I have a lot of concerns about all the edits Boeing720 has made, for example: [1][2][3][4][5]. He seems to be a non-native English speaker and perhaps novice at C programming (or it is impossible to tell whether it is more of an English or C related problem) who is determined to leave a mark on this article at any cost and I am at wits end trying to deal with his edits. Have felt like I am doing it alone. Eyes could also be used at Register (keyword) and Talk:Register (keyword). Really trying to be constructive, collaborative and cooperative but am getting worn thin. —DIYeditor (talk) 05:19, 19 July 2017 (UTC)
- I'm no novice in English nor C. I have a university-level embedded programming exam. There are English self-tests all people can do, in order to see at which level one might study the English language further (for natives or others). I have scored up to the highest possible level on all I've done (four). DIYeditor must either be a beginner here at Wikipedia, or - and perhaps more likely some kind of troll or similar. In one year have you written two stubs, the rest of your time here do you appears to ... - well - be doing what are doing. (I had a fairly good look in your statistics)
- However - The main problem with this article is the entire layout. I believe we should follow the same general layouts, as most authors in the subject do. I should be about the C-language , not the C++ language, the different standards (European as well as American) are of minor interest - at least until other matters are solved. And as I tried to explain, a new standard is not like a new speed limit. It's voluntary.
- What is the C-language (and we have a certain comparing with other languages, but it's wrong to begin with comparison before the matter is properly explained.
- What is its use ? Has it a primary use ?
- Structure (preprocessor, keywords, headerfiles, functions , arithmetics etc)
- Easy code examples
- Embedded programming
- And so on. And if one just happens make an linguistical error in any sense, should that be corrected without mocking — Preceding unsigned comment added by Boeing720 (talk • contribs) 06:26, 19 July 2017 (UTC)
- Sorry, but Wikipedia is not a gentle place. Text that is helpful is welcome, however if consensus judges other text to be unhelpful, it will be removed or drastically refactored. The first sentence above is "I'm no novice in English nor C". The "nor" is wrong—it should be "or". The second sentence is missing a word, possibly "passed". The purpose of this section was outlined in the OP (opening post—that is, my first comment). It's fine to raise other points, but when the OP has not been addressed, the other points may not be helpful here, and may be ignored. Johnuniq (talk) 07:35, 19 July 2017 (UTC)
- Johnuniq and Power~enwiki: Thank you guys. I have a lot of concerns about all the edits Boeing720 has made, for example: [1][2][3][4][5]. He seems to be a non-native English speaker and perhaps novice at C programming (or it is impossible to tell whether it is more of an English or C related problem) who is determined to leave a mark on this article at any cost and I am at wits end trying to deal with his edits. Have felt like I am doing it alone. Eyes could also be used at Register (keyword) and Talk:Register (keyword). Really trying to be constructive, collaborative and cooperative but am getting worn thin. —DIYeditor (talk) 05:19, 19 July 2017 (UTC)
- At talk-pages have I not really experienced the language issue to be of extreme importance. I could equally have written "I'm no novice in English nor in C". The article must be the primary issue. And in that lies "well written" as a part, naturally. I have added a c-code (with some difficulties due to Wikipedia's own syntax) which I think is enlightening from various aspects - like file handling and parameters to the program, some string handling and a little rather easy math. All in one file. It's also a usable PC program. (not overwhelmingly, but still) I would guess that at university level would it be of "middle difficulty" after perhaps two weeks of studies. Please forgive me if you also are educated or autodidact (of which there are not so few, still) in C, C++ or any other computer language. That other person clearly was not. So please accept my apologies, if this is the case. The code is not really intended for our readers, but parts may be. It's my hope that the code is inspirational, or later may become so. Boeing720 (talk) 14:39, 19 July 2017 (UTC)
- And since I now have had a look at your personal page, can I see that there indeed was a call for my apology. I still don't know what or which languages you prefer. But just by the brief look (that) I had at your personal page, (did) it become obvious to me that you are, at the very least, familiar with "C-alike-code". Splendid ! Perhaps are you the contributor who can tidy up this article and give it (a) proper structure. And for instance clear up the "C vs C++ issue(s)", also from a historical background. Likewise ought the C-language first be explained properly, quite possibly including some differences towards C++. But all the different standards, like ANSI 89, C99 etc, shouldn't be brought up until after the essential parts are dealt with, should they ? Like I told another contributor, new standards are not like new speed limits. New standards are not automatically included in every development studio. I sincerely hope (that) you can help us to tidy up, and give the article a much better structure. Boeing720 (talk) 18:19, 19 July 2017 (UTC)