Liste des Groupes | Revenir à co vms |
On 6/13/2025 10:49 PM, Lawrence D'Oliveiro wrote:import dk.vajhoej.vms.acct.*On Fri, 13 Jun 2025 22:31:37 -0400, Arne Vajhøj wrote:They should (Groovy uses null).if(acctrec.type.type == AcctRecType.ACR$K_IMGDEL) {>
tim = acctrec.systime
for(pack in acctrec.packs) {
if(pack.type.type == AcctPackType.ACR$K_RESOURCE) {
stat = pack.status
}
if(pack.type.type == AcctPackType.ACR$K_IMAGENAME) {
img = pack.imagename
}
}
println("$tim : $img status=$stat")
Shouldn’t “stat” and “img” be initialized to something like “null” or
“undef” (or whatever the Groovy equivalent is)? Unless you’re assuming
they’ll always be defined for that record type.
An image activation record should always have a resource
and imagename pack. But good defensive programming style
say to initialize anyway.
Les messages affichés proviennent d'usenet.