PackageInfo ... where?

Andreas Raab andreas.raab at gmx.de
Mon Oct 13 18:10:35 UTC 2003


Hi Guys,

> Yes, I was proposing that we prevent overrides at load time, 
> but perhaps that's being too restrictive.  But how else would
> you prevent a method from being in two packages if you allow
> overrides?

Check me on this - if I understand PackageInfo correctly then it determines
which package a method belongs to by looking at the category. Since a method
can only be in one category at any given time it is impossible to have it in
two packages (if we use PI that is). So if you modify a method you've got
two choices - either leave it in the one it was in or move it into one of
yours.

In case a) you essentially "patch" the method inplace and it still belongs
to where it was originally. In case b) you take ownership of it. I won't
comment on how useful either one is but it seems to me that we really can't
have methods in multiple packages.

Cheers,
  - Andreas



More information about the Squeak-dev mailing list