On 7 February 2011 22:41, Stéphane Ducasse <[email protected]> wrote:
> Canvas>>draw: anObject
>        ^anObject drawOn: self
>
>
> Now in SM we got
>
> SMxCanvas>>draw: anObject
>        ^self clipBy: anObject bounds during: [ :c | anObject drawOn: c]
>
> and I'm wondering what is the exact difference.
> Any idea?
>

yes,
SMxCanvas ensures that not matter what happens, a morph cannot draw
outside of its declared bounds.
Which usually should not happen anyways.. so it looks like an
additional rule enforcement.



> Stef
>


-- 
Best regards,
Igor Stasenko AKA sig.

Reply via email to