5.5: Expression Sequences

Pharo by Example 5.0 · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-SA 3.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    5.5: Expression Sequences

    Expressions (i.e., message sends, assignments and so on) separated by periods are evaluated in sequence. Note that there is no period between a variable definition (the | box | section) and the following expressions. The value of a sequence is the value of the last expression. The values returned by all the expressions except the last one are ignored. Note that the period is a separator between expressions, and not a terminator. Therefore a final period is optional.

    | box |
    box := 20@30 corner: 60@90.
    box containsPoint: 40@50
    >>> true
    

    This page titled 5.5: Expression Sequences was last modified on Sat, 19 Dec 2020 08:13:36 GMT and is shared under a CC BY-SA 3.0 license and was authored, remixed, and/or curated by via source content that was edited to the style and standards of the LibreTexts platform.