[squeak-dev] The Trunk: MorphicExtras-nice.137.mcz

tim Rowledge tim at rowledge.org
Fri Dec 20 00:12:14 UTC 2013


On 19-12-2013, at 3:55 PM, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:
> Isn't it a good idea to fail the primitive?
> If yes, then it's very simple to implement, just add:
> 
>     (interpreterProxy isWords: bitmap)    ifFalse:[interpreterProxy primitiveFail].
> 
> somewhere in the preamble of  BitBltSimulation>>primitivePixelValueAtX: xVal y: yVal 

sounds plausible to me; probably ought to have been there at the beginning. Fail the prim, have backup code unhibernate and retry. Better yet, fail with an error code and have the backup code test for it.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Don't sweat petty things....or pet sweaty things.




More information about the Squeak-dev mailing list