× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Additional RPGLE Enhancement Requests
  • From: Denis Robitaille <denisr@xxxxxxxxxx>
  • Date: Sun, 20 Jul 1997 12:14:20 -0700
  • Organization: Cascades Inc.

Charlie Massoglia wrote:
> 
> What I really want is the following:
> 
>                 GOTO  VARNAME
> 
> Where you put the address of the tag to which you want to branch.
> 
> A variation of this would be the following:
> 
>                 EVAL  VARNAME = %ADDR(TAGNAME) + NUM
> 
>                 GOTO  VARNAME
> 
> I just love self-modifying code.
> 

        This one will get you a lot of angry mail. This kind of technique may
make shorter code but it is way to prone to bad programming. The problem
with goto is not the goto itself (it is the most powerful control
opcode). The problem is that it is very easy to make bad code with it.
Your suggested improvement would make this even more likely. I know that
avoiding goto will not, by itself, make you programs more maintainable,
but for every program where a goto was used in a good manner, there is
ten where not. 

        Also, someone posted a reply of the sort: If you dont like it, dont use
it and leave us alone. I would accept this argument if and only if this
person can garanty me that no one else but him will ever have to modify
is code.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.