Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8770 > unrolled thread
| Started by | markspace <-@.> |
|---|---|
| First post | 2011-10-13 14:20 -0700 |
| Last post | 2011-10-15 21:37 -0400 |
| Articles | 20 on this page of 40 — 16 participants |
Back to article view | Back to comp.lang.java.programmer
[OT] Dennis Ritchie dies at 70 markspace <-@.> - 2011-10-13 14:20 -0700
Re: [OT] Dennis Ritchie dies at 70 Roedy Green <see_website@mindprod.com.invalid> - 2011-10-13 17:12 -0700
Re: [OT] Dennis Ritchie dies at 70 Martin Gregorie <martin@address-in-sig.invalid> - 2011-10-14 00:40 +0000
Re: [OT] Dennis Ritchie dies at 70 B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> - 2011-10-14 16:59 -0400
Re: [OT] Dennis Ritchie dies at 70 markspace <-@.> - 2011-10-14 14:13 -0700
Re: [OT] Dennis Ritchie dies at 70 B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> - 2011-10-14 17:22 -0400
Re: [OT] Dennis Ritchie dies at 70 Lew <lewbloch@gmail.com> - 2011-10-14 15:44 -0700
Re: [OT] Dennis Ritchie dies at 70 B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> - 2011-10-15 01:11 -0400
Re: [OT] Dennis Ritchie dies at 70 Lew <lewbloch@gmail.com> - 2011-10-15 08:54 -0700
Re: [OT] Dennis Ritchie dies at 70 B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> - 2011-10-15 15:37 -0400
Re: Dennis Ritchie dies at 70 Paul Cager <paul.cager@googlemail.com> - 2011-10-17 03:00 -0700
Re: [OT] Dennis Ritchie dies at 70 Arne Vajhøj <arne@vajhoej.dk> - 2011-10-15 21:43 -0400
Re: [OT] Dennis Ritchie dies at 70 B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> - 2011-10-16 01:30 -0400
Re: [OT] Dennis Ritchie dies at 70 "Charles Hottel" <chottel@earthlink.net> - 2011-10-16 11:19 -0400
Re: [OT] Dennis Ritchie dies at 70 B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> - 2011-10-16 18:28 -0400
Re: [OT] Dennis Ritchie dies at 70 Arne Vajhøj <arne@vajhoej.dk> - 2011-10-16 22:24 -0400
Re: [OT] Dennis Ritchie dies at 70 B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> - 2011-10-17 21:34 -0400
Re: [OT] Dennis Ritchie dies at 70 Arne Vajhøj <arne@vajhoej.dk> - 2011-11-06 18:14 -0500
Re: [OT] Dennis Ritchie dies at 70 B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> - 2011-11-07 12:23 -0500
Re: [OT] Dennis Ritchie dies at 70 Tom Anderson <twic@urchin.earth.li> - 2011-10-16 23:21 +0100
Re: [OT] Dennis Ritchie dies at 70 Arne Vajhøj <arne@vajhoej.dk> - 2011-10-16 22:27 -0400
Re: [OT] Dennis Ritchie dies at 70 rossum <rossum48@coldmail.com> - 2011-10-14 13:19 +0100
Re: [OT] Dennis Ritchie dies at 70 Tom Anderson <twic@urchin.earth.li> - 2011-10-14 14:26 +0100
Re: [OT] Dennis Ritchie dies at 70 Donkey Hottie <donkey@fredriksson.dy.fi> - 2011-10-14 16:53 +0300
Re: [OT] Dennis Ritchie dies at 70 Arne Vajhøj <arne@vajhoej.dk> - 2011-10-14 18:09 -0400
Re: [OT] Dennis Ritchie dies at 70 v_borchert@despammed.com (Volker Borchert) - 2011-10-15 09:28 +0000
Re: [OT] Dennis Ritchie dies at 70 Arne Vajhøj <arne@vajhoej.dk> - 2011-10-15 21:43 -0400
Re: [OT] Dennis Ritchie dies at 70 v_borchert@despammed.com (Volker Borchert) - 2011-10-16 04:51 +0000
Re: [OT] Dennis Ritchie dies at 70 Donkey Hottie <donkey@fredriksson.dy.fi> - 2011-10-15 18:38 +0300
Re: [OT] Dennis Ritchie dies at 70 Arne Vajhøj <arne@vajhoej.dk> - 2011-10-15 21:51 -0400
Re: [OT] Dennis Ritchie dies at 70 v_borchert@despammed.com (Volker Borchert) - 2011-10-15 09:27 +0000
Re: [OT] Dennis Ritchie dies at 70 Tom Anderson <twic@urchin.earth.li> - 2011-10-15 14:43 +0100
Re: [OT] Dennis Ritchie dies at 70 v_borchert@despammed.com (Volker Borchert) - 2011-10-15 18:12 +0000
Re: [OT] Dennis Ritchie dies at 70 Arne Vajhøj <arne@vajhoej.dk> - 2011-10-15 21:39 -0400
Re: [OT] Dennis Ritchie dies at 70 David Lamb <dalamb@cs.queensu.ca> - 2011-10-20 12:39 -0400
Re: [OT] Dennis Ritchie dies at 70 Gene Wirchenko <genew@ocis.net> - 2011-10-20 10:04 -0700
Re: [OT] Dennis Ritchie dies at 70 Tom Anderson <twic@urchin.earth.li> - 2011-10-20 20:36 +0100
Re: [OT] Dennis Ritchie dies at 70 Jan Burse <janburse@fastmail.fm> - 2011-10-21 20:42 +0200
Re: [OT] Dennis Ritchie dies at 70 Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-10-21 18:54 -0700
Re: [OT] Dennis Ritchie dies at 70 Arne Vajhøj <arne@vajhoej.dk> - 2011-10-15 21:37 -0400
Page 2 of 2 — ← Prev page 1 [2]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2011-10-16 22:27 -0400 |
| Message-ID | <4e9b92a6$0$288$14726298@news.sunsite.dk> |
| In reply to | #8873 |
On 10/16/2011 6:21 PM, Tom Anderson wrote: > On Sat, 15 Oct 2011, Arne Vajhøj wrote: >> On 10/15/2011 1:11 AM, B1ll Gat3s wrote: >>> On 14/10/2011 6:44 PM, Lew wrote: >>>> On Friday, October 14, 2011 2:22:27 PM UTC-7, B1ll Gat3s wrote: >>>>> On 14/10/2011 5:13 PM, markspace wrote: >>>>>> "Pike received word Oct. 12 that Dr. Ritchie’s body had been >>>>>> discovered >>>>>> last weekend. A cause of death was not immediately available." >>>>> >>>>> And apparently neither did you. >>>> >>>> But he did. >>> >>> No he didn't. >>> >>>> He got that the cause of death is not available. That *is* an answer! >>> >>> No it isn't. >> >> It explains what is known about the question and why it is so. >> >> That is the best possible reply. >> >> When something is a best possible reply I would call it an answer. > > I wouldn't. At least, if you mean "best possible reply that someone > could make here and now", rather than "best possible reply that we can > imagine someone making". > > It seems rather nihilistic to adopt the former definition. "How did the > universe begin?", "We don't know.", and there's an answer! I would definitely consider "according to source XX then we don't know how the universe began" to be an answer. And that is a better analogy to this context than "We don't know". Arne
[toc] | [prev] | [next] | [standalone]
| From | rossum <rossum48@coldmail.com> |
|---|---|
| Date | 2011-10-14 13:19 +0100 |
| Message-ID | <a4ag97tigmatu0t5dpe963i41sjtk2v9sm@4ax.com> |
| In reply to | #8770 |
On Thu, 13 Oct 2011 14:20:00 -0700, markspace <-@.> wrote:
>Dennis Ritchie, whose work creating the C programming language and the
>Unix operating system became the cornerstone of today’s modern world of
>computing, has died. He was 70.
>
>Ritchie’s death was announced Wednesday in a staff memo from Jeong Kim,
>president of Bell Labs, where Ritchie worked from 1967 to 2007.
>
><http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
#include <stdio.h>
int main(void)
{
printf("Goodbye, world.\n");
return 0;
}
rossum
[toc] | [prev] | [next] | [standalone]
| From | Tom Anderson <twic@urchin.earth.li> |
|---|---|
| Date | 2011-10-14 14:26 +0100 |
| Message-ID | <alpine.DEB.2.00.1110141423470.15658@urchin.earth.li> |
| In reply to | #8783 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, 14 Oct 2011, rossum wrote:
> On Thu, 13 Oct 2011 14:20:00 -0700, markspace <-@.> wrote:
>
>> Dennis Ritchie, whose work creating the C programming language and the
>> Unix operating system became the cornerstone of today’s modern world of
>> computing, has died. He was 70.
>>
>> Ritchie’s death was announced Wednesday in a staff memo from Jeong Kim,
>> president of Bell Labs, where Ritchie worked from 1967 to 2007.
>>
>> <http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
>
> #include <stdio.h>
>
> int main(void)
> {
> printf("Goodbye, world.\n");
> return 0;
> }
A patch for atheists:
--- dmr.c 2011-10-14 14:24:07.535509060 +0100
+++ dmr2.c 2011-10-14 14:24:31.291128788 +0100
@@ -3,5 +3,5 @@
int main(void)
{
printf("Goodbye, world.\n");
- return 0;
+ exit(0);
}
tom
--
Programming is a skill best acquired by practice and example rather than
from books -- Alan Turing
[toc] | [prev] | [next] | [standalone]
| From | Donkey Hottie <donkey@fredriksson.dy.fi> |
|---|---|
| Date | 2011-10-14 16:53 +0300 |
| Message-ID | <v6rlm8-tl5.ln1@hurricane.fredriksson.dy.fi> |
| In reply to | #8788 |
14.10.2011 16:26, Tom Anderson kirjoitti:
> On Fri, 14 Oct 2011, rossum wrote:
>
>> On Thu, 13 Oct 2011 14:20:00 -0700, markspace <-@.> wrote:
>>
>>> Dennis Ritchie, whose work creating the C programming language and the
>>> Unix operating system became the cornerstone of today’s modern world of
>>> computing, has died. He was 70.
>>>
>>> Ritchie’s death was announced Wednesday in a staff memo from Jeong Kim,
>>> president of Bell Labs, where Ritchie worked from 1967 to 2007.
>>>
>>> <http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
>>>
>>
>> #include <stdio.h>
>>
>> int main(void)
>> {
>> printf("Goodbye, world.\n");
>> return 0;
>> }
>
> A patch for atheists:
>
> --- dmr.c 2011-10-14 14:24:07.535509060 +0100
> +++ dmr2.c 2011-10-14 14:24:31.291128788 +0100
> @@ -3,5 +3,5 @@
> int main(void)
> {
> printf("Goodbye, world.\n");
> - return 0;
> + exit(0);
> }
>
> tom
>
#include <stdio.h>
main()
{
printf("Goodbye, World.\n");
exit(0);
}
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2011-10-14 18:09 -0400 |
| Message-ID | <4e98b306$0$281$14726298@news.sunsite.dk> |
| In reply to | #8790 |
On 10/14/2011 9:53 AM, Donkey Hottie wrote:
> 14.10.2011 16:26, Tom Anderson kirjoitti:
>> On Fri, 14 Oct 2011, rossum wrote:
>>> On Thu, 13 Oct 2011 14:20:00 -0700, markspace<-@.> wrote:
>>>> Dennis Ritchie, whose work creating the C programming language and the
>>>> Unix operating system became the cornerstone of today’s modern world of
>>>> computing, has died. He was 70.
>>>>
>>>> Ritchie’s death was announced Wednesday in a staff memo from Jeong Kim,
>>>> president of Bell Labs, where Ritchie worked from 1967 to 2007.
>>>>
>>>> <http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
>>>>
>>>
>>> #include<stdio.h>
>>>
>>> int main(void)
>>> {
>>> printf("Goodbye, world.\n");
>>> return 0;
>>> }
>>
>> A patch for atheists:
>>
>> --- dmr.c 2011-10-14 14:24:07.535509060 +0100
>> +++ dmr2.c 2011-10-14 14:24:31.291128788 +0100
>> @@ -3,5 +3,5 @@
>> int main(void)
>> {
>> printf("Goodbye, world.\n");
>> - return 0;
>> + exit(0);
>> }
>>
>> tom
>>
>
> #include<stdio.h>
>
> main()
> {
> printf("Goodbye, World.\n");
> exit(0);
> }
Implicit type. Tsk tsk.
Arne
[toc] | [prev] | [next] | [standalone]
| From | v_borchert@despammed.com (Volker Borchert) |
|---|---|
| Date | 2011-10-15 09:28 +0000 |
| Message-ID | <j7bjn3$dst$2@Gaia.teknon.de> |
| In reply to | #8806 |
Arne Vajh??j wrote: > Implicit type. Tsk tsk. GOD is REAL unless declared INTEGER. -- "I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed> "I'm a mechanic, not a doctor." Volker Borchert <v_borchert@despammed.com>
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2011-10-15 21:43 -0400 |
| Message-ID | <4e9a36c7$0$293$14726298@news.sunsite.dk> |
| In reply to | #8814 |
On 10/15/2011 5:28 AM, Volker Borchert wrote: > Arne Vajh??j wrote: >> Implicit type. Tsk tsk. > > GOD is REAL unless declared INTEGER. That is FORTRAN not C! Arne
[toc] | [prev] | [next] | [standalone]
| From | v_borchert@despammed.com (Volker Borchert) |
|---|---|
| Date | 2011-10-16 04:51 +0000 |
| Message-ID | <j7dnsk$2vr$1@Gaia.teknon.de> |
| In reply to | #8849 |
Arne Vajhøj wrote: > On 10/15/2011 5:28 AM, Volker Borchert wrote: > > Arne Vajh??j wrote: > >> Implicit type. Tsk tsk. > > > > GOD is REAL unless declared INTEGER. > > That is FORTRAN not C! Of course it is. -- "I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed> "I'm a mechanic, not a doctor." Volker Borchert <v_borchert@despammed.com>
[toc] | [prev] | [next] | [standalone]
| From | Donkey Hottie <donkey@fredriksson.dy.fi> |
|---|---|
| Date | 2011-10-15 18:38 +0300 |
| Message-ID | <5mlom8-vij.ln1@hurricane.fredriksson.dy.fi> |
| In reply to | #8806 |
15.10.2011 01:09, Arne Vajhøj kirjoitti:
> On 10/14/2011 9:53 AM, Donkey Hottie wrote:
>> 14.10.2011 16:26, Tom Anderson kirjoitti:
>>> On Fri, 14 Oct 2011, rossum wrote:
>>>> On Thu, 13 Oct 2011 14:20:00 -0700, markspace<-@.> wrote:
>>>>> Dennis Ritchie, whose work creating the C programming language and the
>>>>> Unix operating system became the cornerstone of today’s modern
>>>>> world of
>>>>> computing, has died. He was 70.
>>>>>
>>>>> Ritchie’s death was announced Wednesday in a staff memo from Jeong
>>>>> Kim,
>>>>> president of Bell Labs, where Ritchie worked from 1967 to 2007.
>>>>>
>>>>> <http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
>>>>>
>>>>>
>>>>
>>>> #include<stdio.h>
>>>>
>>>> int main(void)
>>>> {
>>>> printf("Goodbye, world.\n");
>>>> return 0;
>>>> }
>>>
>>> A patch for atheists:
>>>
>>> --- dmr.c 2011-10-14 14:24:07.535509060 +0100
>>> +++ dmr2.c 2011-10-14 14:24:31.291128788 +0100
>>> @@ -3,5 +3,5 @@
>>> int main(void)
>>> {
>>> printf("Goodbye, world.\n");
>>> - return 0;
>>> + exit(0);
>>> }
>>>
>>> tom
>>>
>>
>> #include<stdio.h>
>>
>> main()
>> {
>> printf("Goodbye, World.\n");
>> exit(0);
>> }
>
> Implicit type. Tsk tsk.
>
> Arne
>
>
The point was K&R C
main()
int argc;
char *argv[];
{
printf("<S>\n");
exit(0);
}
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2011-10-15 21:51 -0400 |
| Message-ID | <4e9a38bd$0$294$14726298@news.sunsite.dk> |
| In reply to | #8819 |
On 10/15/2011 11:38 AM, Donkey Hottie wrote:
> 15.10.2011 01:09, Arne Vajhøj kirjoitti:
>> On 10/14/2011 9:53 AM, Donkey Hottie wrote:
>>> 14.10.2011 16:26, Tom Anderson kirjoitti:
>>>> On Fri, 14 Oct 2011, rossum wrote:
>>>>> On Thu, 13 Oct 2011 14:20:00 -0700, markspace<-@.> wrote:
>>>>>> Dennis Ritchie, whose work creating the C programming language and the
>>>>>> Unix operating system became the cornerstone of today’s modern
>>>>>> world of
>>>>>> computing, has died. He was 70.
>>>>>>
>>>>>> Ritchie’s death was announced Wednesday in a staff memo from Jeong
>>>>>> Kim,
>>>>>> president of Bell Labs, where Ritchie worked from 1967 to 2007.
>>>>>>
>>>>>> <http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
>>>>>>
>>>>>>
>>>>>
>>>>> #include<stdio.h>
>>>>>
>>>>> int main(void)
>>>>> {
>>>>> printf("Goodbye, world.\n");
>>>>> return 0;
>>>>> }
>>>>
>>>> A patch for atheists:
>>>>
>>>> --- dmr.c 2011-10-14 14:24:07.535509060 +0100
>>>> +++ dmr2.c 2011-10-14 14:24:31.291128788 +0100
>>>> @@ -3,5 +3,5 @@
>>>> int main(void)
>>>> {
>>>> printf("Goodbye, world.\n");
>>>> - return 0;
>>>> + exit(0);
>>>> }
>>>>
>>>> tom
>>>>
>>>
>>> #include<stdio.h>
>>>
>>> main()
>>> {
>>> printf("Goodbye, World.\n");
>>> exit(0);
>>> }
>>
>> Implicit type. Tsk tsk.
>>
>
> The point was K&R C
>
> main()
> int argc;
> char *argv[];
> {
> printf("<S>\n");
> exit(0);
> }
The arguments is a nice R touch.
Hmm - digging in memory - shouldn't i be:
main(argc, argv)
int argc;
char *argv[];
?
It is a different syntax that is perfectly fine.
The default int return type is just ugly.
Arne
[toc] | [prev] | [next] | [standalone]
| From | v_borchert@despammed.com (Volker Borchert) |
|---|---|
| Date | 2011-10-15 09:27 +0000 |
| Message-ID | <j7bjll$dst$1@Gaia.teknon.de> |
| In reply to | #8783 |
rossum wrote:
> On Thu, 13 Oct 2011 14:20:00 -0700, markspace <-@.> wrote:
>
> >Dennis Ritchie, whose work creating the C programming language and the
> >Unix operating system became the cornerstone of today???s modern world of
> >computing, has died. He was 70.
> >
> >Ritchie???s death was announced Wednesday in a staff memo from Jeong Kim,
> >president of Bell Labs, where Ritchie worked from 1967 to 2007.
> >
> ><http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
>
> #include <stdio.h>
>
> int main(void)
> {
> printf("Goodbye, world.\n");
> return 0;
> }
main() {
printf("Goodbye, World.\n");
return 0;
/* Atheists use
exit(0);
*/
}
--
"I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed>
"I'm a mechanic, not a doctor." Volker Borchert <v_borchert@despammed.com>
[toc] | [prev] | [next] | [standalone]
| From | Tom Anderson <twic@urchin.earth.li> |
|---|---|
| Date | 2011-10-15 14:43 +0100 |
| Message-ID | <alpine.DEB.2.00.1110151442360.11833@urchin.earth.li> |
| In reply to | #8813 |
On Sat, 15 Oct 2011, Volker Borchert wrote:
> rossum wrote:
>> On Thu, 13 Oct 2011 14:20:00 -0700, markspace <-@.> wrote:
>>
>>> Dennis Ritchie, whose work creating the C programming language and the
>>> Unix operating system became the cornerstone of today???s modern world of
>>> computing, has died. He was 70.
>>>
>>> Ritchie???s death was announced Wednesday in a staff memo from Jeong Kim,
>>> president of Bell Labs, where Ritchie worked from 1967 to 2007.
>>>
>>> <http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
>>
>> #include <stdio.h>
>>
>> int main(void)
>> {
>> printf("Goodbye, world.\n");
>> return 0;
>> }
>
> main() {
> printf("Goodbye, World.\n");
> return 0;
> /* Atheists use
> exit(0);
> */
> }
At least put that in an IFDEF!
tom
--
Rip and tear your guts! You are huge! That means you have huge guts! Rip
and tear! -- The Doomguy
[toc] | [prev] | [next] | [standalone]
| From | v_borchert@despammed.com (Volker Borchert) |
|---|---|
| Date | 2011-10-15 18:12 +0000 |
| Message-ID | <j7cier$m8t$1@Gaia.teknon.de> |
| In reply to | #8817 |
Tom Anderson wrote:
> On Sat, 15 Oct 2011, Volker Borchert wrote:
>
> > rossum wrote:
> >> On Thu, 13 Oct 2011 14:20:00 -0700, markspace <-@.> wrote:
> >>
> >>> Dennis Ritchie, whose work creating the C programming language and the
> >>> Unix operating system became the cornerstone of today???s modern world of
> >>> computing, has died. He was 70.
> >>>
> >>> Ritchie???s death was announced Wednesday in a staff memo from Jeong Kim,
> >>> president of Bell Labs, where Ritchie worked from 1967 to 2007.
> >>>
> >>> <http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
> >>
> >> #include <stdio.h>
> >>
> >> int main(void)
> >> {
> >> printf("Goodbye, world.\n");
> >> return 0;
> >> }
> >
> > main() {
> > printf("Goodbye, World.\n");
> > return 0;
> > /* Atheists use
> > exit(0);
> > */
> > }
>
> At least put that in an IFDEF!
Combined with <5mlom8-vij.ln1@hurricane.fredriksson.dy.fi> we have now
main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");
#ifdef ATHEIST
exit(0);
#else
return 0;
#endif
}
Can this be agreed upon?
--
"I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed>
"I'm a mechanic, not a doctor." Volker Borchert <v_borchert@despammed.com>
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2011-10-15 21:39 -0400 |
| Message-ID | <4e9a35ea$0$293$14726298@news.sunsite.dk> |
| In reply to | #8824 |
On 10/15/2011 2:12 PM, Volker Borchert wrote:
> Tom Anderson wrote:
>> On Sat, 15 Oct 2011, Volker Borchert wrote:
>>
>>> rossum wrote:
>>>> On Thu, 13 Oct 2011 14:20:00 -0700, markspace<-@.> wrote:
>>>>
>>>>> Dennis Ritchie, whose work creating the C programming language and the
>>>>> Unix operating system became the cornerstone of today???s modern world of
>>>>> computing, has died. He was 70.
>>>>>
>>>>> Ritchie???s death was announced Wednesday in a staff memo from Jeong Kim,
>>>>> president of Bell Labs, where Ritchie worked from 1967 to 2007.
>>>>>
>>>>> <http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
>>>>
>>>> #include<stdio.h>
>>>>
>>>> int main(void)
>>>> {
>>>> printf("Goodbye, world.\n");
>>>> return 0;
>>>> }
>>>
>>> main() {
>>> printf("Goodbye, World.\n");
>>> return 0;
>>> /* Atheists use
>>> exit(0);
>>> */
>>> }
>>
>> At least put that in an IFDEF!
>
> Combined with<5mlom8-vij.ln1@hurricane.fredriksson.dy.fi> we have now
>
> main(argc, argv)
> int argc;
> char *argv[];
> {
> printf("Goodbye, World.\n");
>
> #ifdef ATHEIST
> exit(0);
> #else
> return 0;
> #endif
> }
>
> Can this be agreed upon?
K&R style arguments is a brilliant idea for this!
Arne
[toc] | [prev] | [next] | [standalone]
| From | David Lamb <dalamb@cs.queensu.ca> |
|---|---|
| Date | 2011-10-20 12:39 -0400 |
| Message-ID | <i9Ynq.11091$UI7.2980@newsfe11.iad> |
| In reply to | #8824 |
On 15/10/2011 2:12 PM, Volker Borchert wrote:
> Combined with<5mlom8-vij.ln1@hurricane.fredriksson.dy.fi> we have now
>
> main(argc, argv)
> int argc;
> char *argv[];
> {
> printf("Goodbye, World.\n");
>
> #ifdef ATHEIST
> exit(0);
> #else
> return 0;
> #endif
> }
>
> Can this be agreed upon?
I suppose the pedants among us might argue for
#DEFINE RITCHIE_LIFE_STATUS 0
main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");
#ifdef ATHEIST
exit(RITCHIE_LIFE_STATUS);
#else
return RITCHIE_LIFE_STATUS;
#endif
}
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2011-10-20 10:04 -0700 |
| Message-ID | <l2l0a7lqs8tsl755lhu0vmg9odc1dc3orq@4ax.com> |
| In reply to | #9034 |
On Thu, 20 Oct 2011 12:39:42 -0400, David Lamb <dalamb@cs.queensu.ca>
wrote:
[snip]
>I suppose the pedants among us might argue for
>
>#DEFINE RITCHIE_LIFE_STATUS 0
0 is used as a return code for success. I think that
EXIT_FAILURE would be a more descriptive return value.
> main(argc, argv)
> int argc;
> char *argv[];
> {
> printf("Goodbye, World.\n");
>
> #ifdef ATHEIST
> exit(RITCHIE_LIFE_STATUS);
> #else
> return RITCHIE_LIFE_STATUS;
> #endif
> }
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Tom Anderson <twic@urchin.earth.li> |
|---|---|
| Date | 2011-10-20 20:36 +0100 |
| Message-ID | <alpine.DEB.2.00.1110202035500.27998@urchin.earth.li> |
| In reply to | #9034 |
On Thu, 20 Oct 2011, David Lamb wrote:
> On 15/10/2011 2:12 PM, Volker Borchert wrote:
>> Combined with<5mlom8-vij.ln1@hurricane.fredriksson.dy.fi> we have now
>>
>> main(argc, argv)
>> int argc;
>> char *argv[];
>> {
>> printf("Goodbye, World.\n");
>>
>> #ifdef ATHEIST
>> exit(0);
>> #else
>> return 0;
>> #endif
>> }
>>
>> Can this be agreed upon?
>
> I suppose the pedants among us might argue for
>
> #DEFINE RITCHIE_LIFE_STATUS 0
> main(argc, argv)
> int argc;
> char *argv[];
> {
> printf("Goodbye, World.\n");
>
> #ifdef ATHEIST
> exit(RITCHIE_LIFE_STATUS);
> #else
> return RITCHIE_LIFE_STATUS;
> #endif
> }
Oh, definitely. Makes it much more reusable.
tom
--
Kein Mehrheit Fur Die Mitleid
[toc] | [prev] | [next] | [standalone]
| From | Jan Burse <janburse@fastmail.fm> |
|---|---|
| Date | 2011-10-21 20:42 +0200 |
| Message-ID | <j7see6$b24$1@news.albasani.net> |
| In reply to | #8824 |
Volker Borchert schrieb:
> Combined with<5mlom8-vij.ln1@hurricane.fredriksson.dy.fi> we have now
>
> main(argc, argv)
> int argc;
> char *argv[];
> {
> printf("Goodbye, World.\n");
>
> #ifdef ATHEIST
> exit(0);
> #else
> return 0;
> #endif
> }
>
> Can this be agreed upon?
return(0);
So that the newbee thinks return is a function.
Bye
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2011-10-21 18:54 -0700 |
| Message-ID | <qnpoq.9$dz5.5@newsfe13.iad> |
| In reply to | #9077 |
On 10/21/11 11:42 AM, Jan Burse wrote:
> Volker Borchert schrieb:
>> Combined with<5mlom8-vij.ln1@hurricane.fredriksson.dy.fi> we have now
>>
>> main(argc, argv)
>> int argc;
>> char *argv[];
>> {
>> printf("Goodbye, World.\n");
>>
>> #ifdef ATHEIST
>> exit(0);
>> #else
>> return 0;
>> #endif
>> }
>>
>> Can this be agreed upon?
>
> return(0);
>
> So that the newbee thinks return is a function.
>
> Bye
Actually, I would just suggest this evil alternative:
#ifdef ATHEIST
#define return exit
#endif
main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");
return(0);
}
Yes, I can be evil when I want to be.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2011-10-15 21:37 -0400 |
| Message-ID | <4e9a354c$0$293$14726298@news.sunsite.dk> |
| In reply to | #8813 |
On 10/15/2011 5:27 AM, Volker Borchert wrote:
> rossum wrote:
>> On Thu, 13 Oct 2011 14:20:00 -0700, markspace<-@.> wrote:
>>
>>> Dennis Ritchie, whose work creating the C programming language and the
>>> Unix operating system became the cornerstone of today???s modern world of
>>> computing, has died. He was 70.
>>>
>>> Ritchie???s death was announced Wednesday in a staff memo from Jeong Kim,
>>> president of Bell Labs, where Ritchie worked from 1967 to 2007.
>>>
>>> <http://blog.sfgate.com/techchron/2011/10/13/dennis-ritchie-computer-pioneer-dies-at-70/?tsp=1>
>>
>> #include<stdio.h>
>>
>> int main(void)
>> {
>> printf("Goodbye, world.\n");
>> return 0;
>> }
>
> main() {
> printf("Goodbye, World.\n");
> return 0;
> /* Atheists use
> exit(0);
> */
> }
#ifdef
Arne
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.java.programmer
csiph-web