Re: Why you shouldn't be afraid to use VARCHAR in RPGLE
"James H. H. Lampert via RPG400-L" <[email protected]>
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <[email protected]> |
On 12/10/25 4:06 AM, Infodorado InfoDorado via RPG400-L wrote: > The RPG compiler is a single-pass compiler No, it can't be pure single-pass. If it were, then a program in which a variable is NOT defined in a D-spec, nor in the first C-spec in which it appears, would not compile, much less run. And it's trivially simple to construct an example of this (it took me about 2 minutes), and it compiles and runs just fine. I'd quote the source here, but it would likely be mangled beyond recognition. -- JHHL -- This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l. Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.