[Vm-dev] Why spaceOkay test needed?
tim at rowledge.org
Thu Aug 23 23:16:53 UTC 2007
On 23-Aug-07, at 3:52 PM, Mathieu Suen wrote:
> So #sufficientSpaceToInstantiate:indexableSize: call can be removed?
You might *possibly* be able to make a good argument for removing it
from within the instantiateClass:indexableSize: depending on its
usage. I wouldn't recommend removing it from the primitiveNew code
though; how else are you going to be able to fail the prim cleanly?
Sure, you could make the instantiateClass:indexableSize: code return
nil if the instantiation cannot be performed. Then you have to modify
all senders to handle that eventuality. You'd have to not push: the
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
A conscience is what hurts when all your other parts feel so good.
More information about the Vm-dev