Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!79g2000cws.googlegroups.com!not-for-mail
From: "Rune Allnor" <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to do GOTO in Matlab
Date: 15 Dec 2006 12:07:54 -0800
Organization: http://groups.google.com
Lines: 58
Message-ID: <1166213274.918419.226890@79g2000cws.googlegroups.com>
References: <1165778984.266098.310630@73g2000cwn.googlegroups.com>
NNTP-Posting-Host: 82.148.155.70
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1166213281 18336 127.0.0.1 (15 Dec 2006 20:08:01 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 15 Dec 2006 20:08:01 +0000 (UTC)
In-Reply-To: <elut9f$r1h$1@fred.mathworks.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 79g2000cws.googlegroups.com; posting-host=82.148.155.70;
Xref: news.mathworks.com comp.soft-sys.matlab:384047




Steven Lord skrev:
> "Rune Allnor" <allnor@tele.ntnu.no> wrote in message
> news:1166207980.367759.127610@t46g2000cwa.googlegroups.com...
> >
> > per isakson skrev:
> >> daniel_nordlund_1982 wrote:
> >> >
> >> >
> >> > I've seen many people on this newsgroup ask for a GOTO statement.
> >> > Since
> >> > such a statement doesn't exist, I've decided to help MathWorks
> >> > implement one.
> >
> >>
> >> Mathworks has announced a goto function: "Vectorized goto in MATLAB"
> >> [ <http://blogs.mathworks.com/loren/?cat=1> ].
> >>
> >> How does your function compared to Mathwork's plans?
> >
> > Please, tell me you've delayed your April fool's day pranks till now?
> >
> > Did it occur to anyone that there might be a reason why GOTO's
> > don't exist in any high-level programming language designed for
> > almost half a century?
> >
> > And this idea presented on the mathworks blog: Instead of using
> > labels to designate where a GOT jump should land, the LINE
> > NUMBER of the source code or the CONTENTS of the line
> > of source code should designate the destination?
>
> Um, Rune?
>
> Please take a look at when Loren posted that blog entry, and the 3rd, 6th,
> and 9th comments on that blog entry.

It WAS an April's fools day prank? OK, you people got me...
It might be a good idea to remove those sorts of stories
after April 1st.

> I'm sure Loren will be pleased that she was able to write an April Fool's
> post convincing enough to cause this kind of concern.

My congratulations to her.

> Although I do like the idea of goto(NaN) going to a random line.  It seems
> evil enough to be worthy of NaN :)

Sure. I have seen too much nonsense being proposed in
earnest to think of jokes or sarcasms. As one of the
regulars here repeatedly remind us: "Never attribute to
malice that which can be adequately explained by
stupidity."

Unfortunately, it is an advice I have learned to live by.

Rune