|
Two comments Dieter ...
" (it's only using procedure names, not parms)" - At run time (which is
what you were talking about) it is using the slot number compiled into the
program at creation time. That is why it is critical when managing multiple
signatures to realize that the _only_ one that really matters is *Current.
This is why I disagree with your later comment "@one signature for all
versions: - a bad idea at all (comparable to LVLCHK *NONE for all files)".
Since you have to control the slot sequence via the *Current signature
anyway then to me using a single signature makes perfect sense. The LVLCHK
is really a false equivalency - the approach IBM have taken (and to which I
subscribe) is to use a fixed signature so that you _can_ change it later if
you really need to face a re-bind.
Jon P
On Nov 2, 2022, at 5:08 AM, dieter@xxxxxxxxxxxx <dieter.bender@xxxxxxxxxxxx> wrote:
do (it's only using procedure names, not parms)
... interisting discussion, some corections and additional thoughts:
@export *all:
- all procedures ar exported (using binder language only a subset)
- sequence is aplphabetically (not source sequence)
- errors will be forced to activation time as far as the compiler could
references are unique
@one module - one SRVPGM:
- if the exported procedures are prefixed by modulename all external
strategy to avoid strange effects at runtime. But you would have to pay
These two guidelines together will provide a simple and foolproof
some price (you'll never get anything for nothing!).
- you would pay with some additional binding steps.compare imports and exports automatically)
- you would pay with some additional deployed objects.
- you would need some check what signatures are broken (rather easy to
a short discussion about publishing a public library of functions:
To illustrate why and when you will need a more sophisticated approach,
- deploying a complete application in one SRVPGM (and a correspondingBNDDIR) makes it easier for other applications to use the library (=> Java
would deploy one jar file)
- Binder Source is used to ensure, that only the public procedures areexported, signatures are used for versioning.
- possible libl conflicts are minimized by a one for all aproachmodule (thinking of OA handlers)
- additional possibilities to controll multiple activations of the same
But you would have to pay some price (you'll never get anything fornothing!).
- errors in handling your Binder Source could transfer errors fromactivationtime to runtime, wich is harder to detect.
and all internal references are resolved by dynamic binding at runtime -
(ArdGate is using an alternative aproach. Deployment unit is a library
but this is another discussion)
related questions.
@one signature for all versions:
- a bad idea at all (comparable to LVLCHK *NONE for all files)
- has no influence to activation
D*B
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
link: https://amazon.midrange.com
Help support midrange.com by shopping at amazon.com with our affiliate
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
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.