[squeak-dev] The Trunk: Graphics-mt.404.mcz

Eliot Miranda eliot.miranda at gmail.com
Sun Dec 2 21:51:43 UTC 2018


On Sun, Dec 2, 2018 at 2:50 AM <commits at source.squeak.org> wrote:

> Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
> http://source.squeak.org/trunk/Graphics-mt.404.mcz
>
> ==================== Summary ====================
>
> Name: Graphics-mt.404
> Author: mt
> Time: 2 December 2018, 11:49:55.694325 am
> UUID: c61bf172-8ce2-2b42-9ded-3b10fa30cf8d
> Ancestors: Graphics-pre.403
>
> Adds an infix version for Rectangle >> #center:extent: for convenience.
>
> The name #inflate: is subject to discussion. :-)
>

I don't like inflate: or any of the other suggestions.  Why not have it the
other way round so that the extent is the receiver, then one could call it

     asRectangleCentredAt:

or some such.  inflate: makes me thing of division by zero because points
have no extent.  If you insist on the inflate: way round then intension
revealing would be

    centredRectangleWithExtent:  centredRectangleExtent:


> =============== Diff against Graphics-pre.403 ===============
>
> Item was added:
> + ----- Method: Point>>inflate: (in category 'converting') -----
> + inflate: aPoint
> +       "Answer a Rectangle whose center is the receiver and whose extent
> is
> +       aPoint. This is one of the infix ways of expressing the creation
> of a
> +       rectangle."
> +
> +       ^Rectangle center: self extent: aPoint!
>
>
>

-- 
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20181202/b8d04f45/attachment.html>


More information about the Squeak-dev mailing list