|
On Mar 18, 2017, at 4:23 PM, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:
I think what Jon means that he expects any field used in a loop like the
folowing to be prefined
by declarations hundreds of statements from the actual code
for (zdii = 0; zdii < keyField.length; zdii++) {
for (var key in zdbRow) {
if (zdbRow.hasOwnProperty(key)) {
if (key == keyField[zdii]) {
if (keyField.length == 1) {
zdbKey = zdbRow[key]
} else {
zdbKey[zdii] = zdbRow[key]
}
break
}
}
}
}
On Sat, Mar 18, 2017 at 9:16 PM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:
On Sat, Mar 18, 2017 at 2:30 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx>
wrote:
No - because RPG requires strongly typed data declarations - we didaways with the crap about creating fields in the calcs years ago.
There's some variation on what the term "strong" typing means, but I'm
not sure I'm following. In what sense are D-spec declarations
(free-form or not) "strong" while C-spec ones are not?
I would say D-spec declarations provide more organization and are
arguably more readable than C-spec declarations, but both are examples
of *static* type declarations. Maybe you mean D-spec declarations
offer the capability to define *structured* data?
John Y.
--
This is the RPG programming on the IBM i (AS/400 and 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.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
--
Regards,
Henrik Rützou
http://powerEXT.com <http://powerext.com/>
--
This is the RPG programming on the IBM i (AS/400 and 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.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD
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.