[Pharo-dev] methods not registered in packages?
tudor at tudorgirba.com
Sun Feb 9 02:15:17 EST 2020
While trying to measure the size of code, I stumbled across an interesting problem: it seems that some methods have a package, but the package does not list.
packagedMethods := RPackageOrganizer default packages flatCollect: #methods.
methods := ProtoObject withAllSubclasses flatCollect: #methods.
diff := methods \ packagedMethods.
Looking at bit closer, it looks like the methods do have a package and that they point to the package that is in the package organizer, so that is good:
diff select: [ :each | each package isNil ]
diff select: [ :each | (RPackageOrganizer default packages includes: each package) not ].
However, when we ask the package, it does not know about the method:
diff select: [ :each | each package methods includes: each ]
Is this a known problem or should I open an issue (I did not find a bug report for it)?
"Presenting is storytelling."
More information about the Pharo-dev