Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #2238

Re: goto

From Mok-Kong Shen <mok-kong.shen@t-online.de>
Newsgroups comp.programming
Subject Re: goto
Date 2012-09-23 15:25 +0200
Organization albasani.net
Message-ID <k3n2ju$3n8$1@news.albasani.net> (permalink)
References <04ef7083-e585-41b5-a7b2-9752597583d6@googlegroups.com> <k3l86n$f52$1@news.albasani.net> <k3l9na$jft$1@news.albasani.net> <6aWdneacAJZk2MPNnZ2dnUVZ_rydnZ2d@earthlink.com>

Show all headers | View raw


Am 23.09.2012 01:12, schrieb Patricia Shanahan:
> On 9/22/2012 2:14 PM, Mok-Kong Shen wrote:
>>
>> Addendum: In Fortran 90 (I don't have documents of later versions
>> of Fortran at hand to say whether that feature remains in the later
>> versions) there is the ENTRY statement for a subroutine subprogram.
>> It is stated there:
>>
>>     An ENTRY statement permits a procedure reference to begin
>>     with a particular executable statement within the function
>>     or subroutine subprogram in which the ENTRY statement appears.
>>
>> However the use of ENTRY statement is constrained in such a way
>> that wild jumps as in the case of assembler are impossible.

> Also, if I remember correctly, an alternative entry point in a Fortran
> subprogram is accessed via a call, not a goto.

You are completely right. That's no longer at the level of a simple
goto. The document has the following:

     If the ENTRY statement is contained in a subroutine subprogram,
     an additionl subroutine is defined by that subprogram. The
     name of the subroutine is entry-name. The dummy arguments of
     the subroutine are those specified on the ENTRY statement.

So one is effectively lumping a number of subroutines into one,
creating thereby though certain direct connections between them
due to the codes.

M. K. Shen

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

goto bob <bob@coolfone.comze.com> - 2012-09-19 09:00 -0700
  Re: goto diego <deepakpjose@gmail.com> - 2012-09-19 09:28 -0700
    Re: goto diego <deepakpjose@gmail.com> - 2012-09-19 09:28 -0700
      Re: goto bob <bob@coolfone.comze.com> - 2012-09-20 12:36 -0700
  Re: goto Patricia Shanahan <pats@acm.org> - 2012-09-19 09:35 -0700
    Re: goto "BartC" <bc@freeuk.com> - 2012-09-19 19:25 +0100
    Re: goto Anonymous <nobody@remailer.paranoici.org> - 2012-09-20 17:04 +0000
  Re: goto Robin Vowels <robin.vowels@gmail.com> - 2012-09-20 18:37 -0700
    Re: goto Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-21 10:35 -0700
  Re: goto Mok-Kong Shen <mok-kong.shen@t-online.de> - 2012-09-22 22:48 +0200
    Re: goto Mok-Kong Shen <mok-kong.shen@t-online.de> - 2012-09-22 23:14 +0200
      Re: goto Patricia Shanahan <pats@acm.org> - 2012-09-22 16:12 -0700
        Re: goto Mok-Kong Shen <mok-kong.shen@t-online.de> - 2012-09-23 15:25 +0200
      Re: goto Robin Vowels <robin.vowels@gmail.com> - 2012-09-28 18:07 -0700
  Re: goto Florian Scholz <florian.scholz@stud.hn.de> - 2012-09-28 18:36 +0200
    Re: goto bob <bob@coolfone.comze.com> - 2012-09-28 15:05 -0700
      Re: goto "BartC" <bc@freeuk.com> - 2012-09-28 23:39 +0100

csiph-web