|
I tend to agree (w/o being an IBM programmer nor am I aware of all the concerns IBM developers have...). If the concern is parsing for a 'opcode', prefix it with a character not currently available in the naming convention. Making it a %Bif seems to a be a logical extension of the current direction the language is going. We got %SubArr not Sub-Arr, right? My 2 cents. Kurt Anderson Application Developer Highsmith Inc -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Holden Tommy Sent: Tuesday, June 07, 2005 3:03 PM To: RPG programming on the AS400 / iSeries Subject: RE: Hyphenated OpCode Names so that's the reasoning? Then would it not be better to implement as a BIF %corr(this_stuff:that_stuff) as someone else suggested...sorry i forgot who suggested the bif approach..) Thanks, Tommy Holden -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Barbara Morris Sent: Tuesday, June 07, 2005 2:43 PM To: rpg400-l@xxxxxxxxxxxx Subject: Re: Hyphenated OpCode Names Bob Cozzi wrote: > ...I mean, one can not > advocate free format and then use Z-ADD as justification when Z-ADD is > not part of free format syntax to begin with. > Bob, Z-ADD is not the justification. The reason we need to have a hyphen (or some other character that is not valid in a variable name) is that we can't add an opcode that might be the same as a variable in an existing program, because of upward compatibility. When the compiler begins parsing a free-form statement, it looks at the first name, and if it's not the name of an opcode allowed in free-format, then it parses the statement as an eval or callp statement. If it is the name of an opcode allowed in free-format, it parses the statement for that opcode. If we take names that would formerly have been parsed as eval or callp statements and suddenly start parsing them as an evalmap statement, the compiler would not be upward compatible. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.