× 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: Paul Dods <pauldods@xxxxxxxxxxxxxxx>
  • Date: Sun, 20 Jul 1997 16:34:06 -0500 (CDT)

At 11:15 PM 7/19/97 -0400, you 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.

Any other PL/1 fans out there?  Used to see this all the time in PL/1. But
they dropped that for the RISC boxes...  

Wonderful things happened when you started performing math on the variables
containing pointers - nice easy way to crash a mainframe...

You could also store an array of labels LABELS(5)  (1) = 'LABEL1' (2) =
'LABEL2', etc., and then issue completely unmaintainable code like:  I = 3 ;
goto LABELS(I) ;    Try fixing a crash in one of these monsters at 3 am...

 

Paul Dods                               
AS/400 Systems Programmer
Michael's Stores, Inc.          
Dallas, Texas

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* 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 ...


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.