August 15, 2003 Re: Labeled statement and empty statement | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wynn | "Mike Wynn" <mike.wynn@l8night.co.uk> wrote in message news:bhjqsn$jdo$1@digitaldaemon.com... > "Walter" <walter@digitalmars.com> wrote in message news:bhjp68$htd$3@digitaldaemon.com... > > "Matthew Wilson" <matthew@stlsoft.org> wrote in message news:bhi9p8$27a0$1@digitaldaemon.com... > > > I don't eat any dead walking (or flying) things, so cannot say that I > do. > > ;) > > I don't eat any of the walking dead zombies, either. I poke 'em with a > fork > > first to make sure they really are truly dead before eating them. Nothing > > like having your dead dinner up and walk away. > poke 'em with a fork, .. never, fry them! then you can be sure! Good idea. I'll stuff them in my deep fat frier. If they try to get out, I'll bash 'em over the head with a goto! |
August 16, 2003 Re: Labeled statement and empty statement | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Walter wrote:
> "John Reimer" <jjreimer@telus.net> wrote in message
> news:bhjd2s$5ob$1@digitaldaemon.com...
>
>>I still have trouble believing the volatile concoction called "Coca
>>Cola" can be good for you in any situation.
>
>
> You're stepping awfully close to heresy.
>
>
Ohhh No! Uh... would it help to say that I've acted the part of the hypocrite and do very occasionnally have the ambrosia?
|
August 16, 2003 Re: Labeled statement and empty statement | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "Walter" <walter@digitalmars.com> wrote in message news:bhjs4o$khu$2@digitaldaemon.com... > > "Mike Wynn" <mike.wynn@l8night.co.uk> wrote in message news:bhjqsn$jdo$1@digitaldaemon.com... > > "Walter" <walter@digitalmars.com> wrote in message news:bhjp68$htd$3@digitaldaemon.com... > > > "Matthew Wilson" <matthew@stlsoft.org> wrote in message news:bhi9p8$27a0$1@digitaldaemon.com... > > > > I don't eat any dead walking (or flying) things, so cannot say that I > > do. > > > ;) > > > I don't eat any of the walking dead zombies, either. I poke 'em with a > > fork > > > first to make sure they really are truly dead before eating them. > Nothing > > > like having your dead dinner up and walk away. > > poke 'em with a fork, .. never, fry them! then you can be sure! > > Good idea. I'll stuff them in my deep fat frier. If they try to get out, I'll bash 'em over the head with a goto! > no! you should continue hitting them until they break, or throw them out as an exception! |
August 16, 2003 Re: Labeled statement and empty statement | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Walter wrote:
> "Martin M. Pedersen" <martin@moeller-pedersen.dk> wrote in message
> news:bhgh13$flp$1@digitaldaemon.com...
>
>>"Charles Sanders" <sanders-consulting@comcast.net> wrote in message
>>news:bhgdqv$cfh$1@digitaldaemon.com...
>>
>>>It would be more elegenat if you didnt use goto's :P.
>>
>>I know, but still, "goto" is part of the language.
>
>
> Goto's are like pointers. You rarely need them, but when you do, they're
> real nice to have!
>
>
Walter, if Matthew Wilson doesn't mind me
quoting him, what you say sounds very naive.
|
August 16, 2003 Re: Labeled statement and empty statement | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin M. Pedersen | "Martin M. Pedersen" <martin@moeller-pedersen.dk> wrote in message news:bhgh13$flp$1@digitaldaemon.com... > "Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bhgdqv$cfh$1@digitaldaemon.com... > > It would be more elegenat if you didnt use goto's :P. > I know, but still, "goto" is part of the language. A "goto" is invaluable if you're using D as a back-end for another language, since all control structures can be represented by if's and goto's. |
August 16, 2003 Re: Labeled statement and empty statement | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Walter wrote:
> "John Reimer" <jjreimer@telus.net> wrote in message
> news:bhjm3l$er9$1@digitaldaemon.com...
>
>>A 4 hour ride? Oh, I'd say your body would lap up anything including
>>Coke after that! In fact, Coke probably never tasted so good after such
>>a long ride. I know the feeling (but I'd be craving it at 2.5 hours)
>>:). I must say, after a long hard run (2+ hours), I can't begin to
>>describe how wonderful a sugary sweet drink tastes...of any sort. It's
>>a crazy experience.
>
>
> How far do you run?
>
>
A little over two hours is my current max without any kind of food or drink intake. I train for half-marathons, hoping to increase that eventually to longer distances (marathon?). My training routes are off road in the hills with some long climbs. I'd say about 14 to 15 miles. I can do much better times on flat routes :). Those are what I call my hard training days. I'm still working on upping my weekly mileage. I'm 6'7" and 225 lbs (not the typical runners build), so I consider it an ahievement if I can survive long runs, but it's all I really want to do. For easy training days, I stick to about 10K runs. 6K if I am really taking it easy. No run, if I'm drop dead lazy ;).
Later,
John
|
August 16, 2003 Re: Labeled statement and empty statement | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wynn | "Mike Wynn" <mike.wynn@l8night.co.uk> wrote in message news:bhjc5n$4o5$1@digitaldaemon.com... > so lets have a nice clean fight and argue about the point (goto) can we get to it without going to it ? Long ago, when I started at a new company, a senior programmer did a grep across all my code for 'goto', and printed out the matching lines. He then passed this around at the weekly meeting and used it as justification for my code being of poor quality. I asked him if he'd looked at the context of each of those goto's to see if they were justifiable or not. He had not, and backed down. Ironically, we became great friends and worked together on a lot of successful projects. I think he liked having someone stand him down in a meeting <g>. |
August 16, 2003 Re: Labeled statement and empty statement | ||||
---|---|---|---|---|
| ||||
Posted in reply to Patrick Down | "Patrick Down" <Patrick_member@pathlink.com> wrote in message news:bhjenm$7hh$1@digitaldaemon.com... > Oh, it's one of the topics best to avoid. Religion, politics, and gotos. <g> Reminds me of another story <g>. Another colleague of mine, long ago, was a pascal zealot. We were a C shop, and he never lost an opportunity to point out how Pascal was better. One day, a person came to the office and asked to see him. Our office was one large cavernous bay divided into cubicles. I said in a loud voice "Pascal sucks!". Up he popped "who said that?" I spoke to the visitor: "he's right over there." He got teased about that one for years <g>. |
August 16, 2003 Re: Labeled statement and empty statement | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "Walter" <walter@digitalmars.com> wrote in message news:bhjsnl$l61$1@digitaldaemon.com... > > "Martin M. Pedersen" <martin@moeller-pedersen.dk> wrote in message news:bhgh13$flp$1@digitaldaemon.com... > > "Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bhgdqv$cfh$1@digitaldaemon.com... > > > It would be more elegenat if you didnt use goto's :P. > > I know, but still, "goto" is part of the language. > > A "goto" is invaluable if you're using D as a back-end for another language, > since all control structures can be represented by if's and goto's. > that's a big "IF". or should it be a why ? does it not make more sense to have an interface to the D compilers backend so you feed it an ast/dag instead (there are lots of tools for creating asts from langs, very few for creating dag froms ast and less code from dag). I'll have to come back to the requirement of goto to do goto! as a challenge I have set my self the task of re-writing int func( int a, int b ) { int c = a+b; while( --a > 0 ) { if ( a < b ) { goto horrid; } } while( c < b * 2 ) { b += a; if ( b < a ) { horrid: a = a << 1; } } return a+b; } the obvious way is to change the goto to call an inner function that is a copy of the code path from `horrid` round the loop .... (easier at ast level than source) and in a way justifies my belief that a back end should take an ast not a human readble lang (or not a designed for human creation lang). |
Copyright © 1999-2021 by the D Language Foundation