Re: Fear
Re: Fear
- Subject: Re: Fear
- From: David P Henderson <email@hidden>
- Date: Wed, 6 Jun 2001 21:58:22 -0400
I responded privately to Rosyna but wasn't aware that this was also a
public post. This is not that response. This is one to defend myself
publicly.
On Wednesday, June 6, 2001, at 08:06 , Rosyna wrote:
Do NOT blame it on ignorance of the language, the new main function
format was created after the original standard had been created. If he
was using CW for the majority of the time he was programming, he would
have never seen the new main format.
In reference to: int main (int argc, const char * argv[])
The person in question stated, "The best I can guess at is that the
variable 'main' is an integer that could be either 'argc' or the product
of 'const' times 'argv[]'."
Clearly demonstrating that he didn't recognize a function, the const
keyword, pointers and00 arguments to a function. Ignorance of the C
language. This is not what I took exception to, but rather the snide
comment closing his missive which blamed Apple for his ignorance of C,
"Damn, I hate having to ask these dumb ass questions. Thanks again,
Apple.".
I tried to find this information in a book I have on C/C++ yet most of
them never had arguments and never discussed arguments for main(). I
have 10 books on C and/or C++.
I have 4. They are discussed in 2 of them ;)
The only reason to ever use arguments in main is for a command line
launched program, so do NOT mistake his never programming for a wholely
command line machine to be ignorance of the language.
Not necessarily true, command line params to a GUI app on X could easily
be used to allow shell scripting of the app which is a plus for those
who are more knowledgeable about command line scripting than
AppleScripting. Note, I am not proposing that AppleScript be replaced
with shell scripting, but that like Perl we should have a multitude of
ways to achieve the same goal.
Dave
--
Chaos Assembly Werks
"The Trend over the last 20 years or so has been to design computer
languages that enforce a state of paranoia. You're expected to program
every module as if it were in a state of siege In Perl culture, by
contrast, you're expected to stay out of someone's home because you
weren't invited in, not because there are bars on the windows."
from Programming Perl
References: | |
| >Re: Fear (From: Rosyna <email@hidden>) |