>From: Jim Langston <jlangston@celsinc.com>
>Date: Tue, 5 Mar 2002 11:35:45 -0800
>
>Wow, Barbara, is that legal?
>
>I thought the RPG compilers were single passes.  So how would it know the
>size of Error in the middle of Error?

Jim, the RPG compilers only read the source once, but they create
a dictionary and an intermediate representation of the program*
that they then go through a couple more times (once for relational
diagnostics and once for code generation).

RPG allows forward referencing (almost?) everywhere.

* this _isn't_ the famous IRP that you can see when you CRTRPGPGM
  GENOPT(*LIST).  It's just a set of compiler-internal structures
  that the compiler builds for itself from the source.

Barbara Morris



This thread ...


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

This mailing list archive is Copyright 1997-2026 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.