Dan Sugalski wrote:
Okay, here's an issue for everyone. I'm writing the MMD subsystem, at
least the parts needed for operator overloading, and I'm coming across the
need to defer adding functions. For example, the Float class has functions
for the Integer class, and vice versa, and we can't guarantee that both
classes are loaded in when the functions are going to be installed. I
don't want to discard the functions, though, since they should be in force
when both classes are available.
So, I've two options:
1) When one or both of the classes a MMD function is installed for don't
exist, we give them both class numbers (but don't load them) so when the
classes *are* later loaded they already have numbers
2) We put the functions in a 'pending' list and install them when (if) the
missing classes are later loaded
I can see it going either way, and I'm not sure which would be better.
(It's important to note that this is strictly an internal issue, since
bytecode'll never know one way or the other) Opinions?
Isn't there also the option to force load the missing class(es)
recursively?
--
[EMAIL PROTECTED]
[EMAIL PROTECTED]